neosrulez/scssparser
Composer 安装命令:
composer require neosrulez/scssparser
包简介
A package to compile SCSS for Neos CMS
README 文档
README
A Neos CMS plugin to compile SCSS for Neos CMS
Installation
The NeosRulez.ScssParser package is listed on packagist (https://packagist.org/packages/neosrulez/scssparser) - therefore you don't have to include the package in your "repositories" entry any more.
Just add the following line to your require section:
"neosrulez/scssparser": "*"
And the run this command to fetch the plugin:
composer update
Fusion
In your site package Fusion file you can add the .scss files to compile
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/'
}
}
}
Author
- E-Mail: mail@patriceckhart.com
- URL: http://www.patriceckhart.com
统计信息
- 总下载量: 1.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-03-04