Use node-sass to parser sass for fis/fis3.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
LICENSE.md
README.md
compile.js
index.js
package.json

README.md

fis-parser-node-sass

安装与使用

全局安装

npm install fis-parser-node-sass -g

FIS2

开启插件

fis.config.set('modules.parser.sass', 'node-sass');
fis.config.set('modules.parser.scss', 'node-sass');

fis.config.set('roadmap.ext.sass', 'css');
fis.config.set('roadmap.ext.scss', 'css');

插件配置

fis.config.set('settings.parser.node-sass', {
    // 加入文件查找目录
    include_paths: []
});

FIS3

fis.match('*.scss', {
  rExt: '.css',
  parser: fis.plugin('node-sass', {
    // options...
  })
})