我试图构建Drupal 8主题,但在资产库方面遇到了一些问题。
该站点保持白色,apache错误日志抛出php异常:
Uncaught PHP Exception Drupal\Core\Asset\Exception\InvalidLibrariesExtendSpecificationException: "The specified library "radweiser/main-style" does not exist." at /Users/****/Sites/dev/radweiser/web/core/lib/Drupal/Core/Asset/LibraryDiscoveryCollector.php line 168
我使用引导程序Drupal 8主题作为我的基本主题。以下是我的主题为radweiser:的yml文件
radweiser.info.yml
name: radweiser
type: theme
description: Drupal 8 Theme
version: 0.1.0
core: 8.x
base theme: bootstrap
screenshot: images/screenshot.png
libraries:
- radweiser/global-styling
- radweiser/main-style
libraries-extend:
bootstrap/base-theme:
- radweiser/main-style
regions:
navigation: 'Navigation'
navigation_collapsible: 'Navigation (Collapsible)'
header: 'Top Bar'
highlighted: 'Highlighted'
help: 'Help'
content: 'Content'
sidebar_first: 'Primary'
sidebar_second: 'Secondary'
footer: 'Footer'
page_top: 'Page top'
page_bottom: 'Page bottom'
radweiser.libraries.yml
global-styling:
version: VERSION
css:
theme:
styles/global.css: {}
main-styles:
version: VERSION
css:
theme:
styles/main.css: {}
有人知道这个问题吗?
这只是一个打字错误
main style/main styles