Wondering what’s next for npm?Check out our public roadmap! »

reasy-parser-sass

1.2.8 • Public • Published

reasy-parser-sass NPM version

NPM Download

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

Keywords

Install

npm i reasy-parser-sass

DownloadsWeekly Downloads

19

Version

1.2.8

License

MIT

Last publish

Collaborators

  • avatar