fis-parser-sass
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -208,2 +208,3 @@ /** | ||
content = before( content, file, [ file.dirname ].concat( paths ) ); | ||
content = fixPath(content, file); | ||
@@ -222,2 +223,6 @@ delete stack[ file.realpath ]; | ||
var after = compile.after = function( content, file, paths ) { | ||
return content; | ||
}; | ||
var fixPath = compile.fixPath = function(content, file) { | ||
// 处理,解决资源引用路径问题。 | ||
@@ -227,2 +232,3 @@ content = fis.compile.extCss(content); | ||
return content.replace(fis.compile.lang.reg, function(all, type, value) { | ||
var info = fis.uri(value, file.dirname); | ||
@@ -234,4 +240,8 @@ | ||
if (type === 'embed' || type === 'jsEmbed') { | ||
value = fis.compile.lang[type].ld + value + fis.compile.lang[type].rd; | ||
} | ||
return value; | ||
}); | ||
}; | ||
} |
{ | ||
"name" : "fis-parser-sass", | ||
"description" : "A parser plugin for fis to compile sass file.", | ||
"version" : "0.2.2", | ||
"version" : "0.2.3", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
10677
209