I am creating a drupal theme but the css is not loading.
I already cleared the cache but it's still not loading.
My info.yml
name: Waluigi
description: Just a test
type: theme
core: 8.x
libraries:
-waluigi/global-styling
My libraries.yml
global-styling:
version: VERSION
css:
theme:
css/style.css: {}
The stylesheet is placed at /themes/custom/waluigi/css
Can somebody tell me what I am missing?
You are missing a space after after the "-". So it should be like this:
- waluigi/global-styling
哦,我必须在连字符后面加一个空格。
- waluigi/global-styling
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.