neosrulez / scssparser
用于编译 Neos CMS 的 SCSS 的软件包
1.7.3
2020-11-28 16:05 UTC
Requires
- neos/neos: *
- neos/nodetypes: *
- scssphp/scssphp: 1.0.9
README
Neos CMS 的 SCSS 编译插件
安装
NeosRulez.ScssParser 软件包已在 packagist 上列出(https://packagist.org.cn/packages/neosrulez/scssparser),因此您不再需要在 "repositories" 条目中包含该软件包。
只需在 require 部分添加以下行
"neosrulez/scssparser": "*"
然后运行此命令以获取插件
composer update
Fusion
您可以在站点的 Fusion 文件中添加 .scss 文件以进行编译
prototype(Neos.Neos:Page) {
head {
yourcss1 = NeosRulez.ScssParser:ScssFile
yourcss1 {
source = 'resource://Your.Site/Private/Styles/app.scss'
inline = FALSE
format = 'compressed'
#format = 'expanded'
#format = 'nested'
#format = 'compact'
#format = 'crunched'
# You need outputFolder only if inline = FALSE
outputFolder = 'resource://Your.Site/Public/Styles/'
}
yourcss2 = NeosRulez.ScssParser:ScssFile
yourcss2 {
source = 'resource://Your.Site/Private/Styles/test.scss'
inline = FALSE
format = 'compressed'
#format = 'expanded'
#format = 'nested'
#format = 'compact'
#format = 'crunched'
# You need outputFolder only if inline = FALSE
outputFolder = 'resource://Your.Site/Public/Styles/'
}
}
}