reasy-parser-sass

A parser plugin for reasy to compile sass file.

Usage no npm install needed!

<script type="module">
  import reasyParserSass from 'https://cdn.skypack.dev/reasy-parser-sass';
</script>

README

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