reasy-parser-sass
v1.2.8
Published
A parser plugin for reasy to compile sass file.
Downloads
7
Readme
reasy-parser-sass
A parser plugin for reasy to compile sass file.
(基于node-sass的fis插件,支持expanded,及预定义变量。本插件基于fis官方插件修改,不过依赖库由fis-sass
更改为node-sass
)
install
$ npm install -g reasy-parser-sass
//reasy-conf.js
fis.match('**.scss', {
parser: fis.plugin('sass', {
define: {
'enable': true,
'$bgcolor': '#d8222d',
'color': 'black'
}
}),
rExt: 'css'
})
//example a.scss
@if ($enable) {
body {
background: $bgcolor;
color: $color;
}
}
$ reasy release -d ./output