这让我发疯了。
我正在尝试以老式方式加载UI Kit(不使用扩展名)。我正在设置info.yml和libraries.yml。我可以很好地加载UI Kit框架CSS,但似乎无法包含JS文件。
这就是我要的Info.yml:
name: Kin
type: theme
description: 'A flexible, recolorable theme with many regions and a responsive, mobile-first layout.'
package: 'kin'
regions:
header: Header
header2: Header2
navbar: Navbar
leftsidebar: LeftSidebar
rightsidebar: RightSidebar
content: Content
footer: Footer
libraries:
- kin/globalscripts
version: '1.x'
core: '8.x'
project: 'kin'
而且,这里是Libraries.yml的内容:
globalscripts:
version: VERSION
js:
includes/uikit/js/uikit.min.js: {}
css:
theme:
includes/uikit/css/uikit.min.css: {}
dependencies:
- core/jquery
(我也确信路径正确无误。)
有人可以帮忙!!!