fis-parser-sass
Advanced tools
Comparing version 0.0.12 to 0.1.0
@@ -174,4 +174,4 @@ /** | ||
// 已经在堆里面了 | ||
if ( stack[ file.subpath ] ) { | ||
fis.log.error( 'can\'t embed file ' + file.subpath + '.' ); | ||
if ( stack[ file.realpath ] ) { | ||
fis.log.error( 'can\'t embed file ' + file.basename + '.' ); | ||
} | ||
@@ -181,8 +181,8 @@ | ||
// 类似与include_once. | ||
if ( cache[ file.subpath ] ) { | ||
if ( cache[ file.realpath ] ) { | ||
return ''; | ||
} | ||
stack[ file.subpath ] = true; | ||
cache[ file.subpath ] = true; | ||
stack[ file.realpath ] = true; | ||
cache[ file.realpath ] = true; | ||
@@ -196,3 +196,3 @@ content = file.getContent(); | ||
delete stack[ file.subpath ]; | ||
delete stack[ file.realpath ]; | ||
@@ -199,0 +199,0 @@ return content; |
{ | ||
"name" : "fis-parser-sass", | ||
"description" : "A parser plugin for fis to compile sass file.", | ||
"version" : "0.0.12", | ||
"version" : "0.1.0", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
9327