fis-parser-sass
Advanced tools
Comparing version 0.0.9 to 0.0.10
14
index.js
@@ -10,9 +10,15 @@ /* | ||
var root = fis.project.getProjectPath(); | ||
var compile = require('./compile.js'); | ||
module.exports = function(content, file, conf){ | ||
var opts = fis.util.clone(conf); | ||
opts.data = content; | ||
opts.include_paths = conf.include_paths || []; | ||
opts.include_paths = opts.include_paths.concat([ file.dirname, root ]); | ||
return sass.renderSync(opts); | ||
opts.include_paths = conf.include_paths || [ root ]; | ||
opts.include_paths.unshift( file.dirname ); | ||
opts.data = compile.before( content, file.ext, opts.include_paths ); | ||
content = sass.renderSync( opts ); | ||
content = compile.after( content, file.ext, opts.include_paths ); | ||
return content; | ||
}; |
{ | ||
"name" : "fis-parser-sass", | ||
"description" : "A parser plugin for fis to compile sass file.", | ||
"version" : "0.0.9", | ||
"version" : "0.0.10", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -20,4 +20,4 @@ "homepage" : "http://fis.baidu.com/", | ||
"dependencies" : { | ||
"fis-sass" : "0.1.11" | ||
"fis-sass" : "0.1.12" | ||
} | ||
} |
6863
6
106
+ Addedfis-sass@0.1.12(transitive)
- Removedfis-sass@0.1.11(transitive)
Updatedfis-sass@0.1.12