2012-03-19 58 views
4

我目前使用Mindscape Web Workbench从sass创建css。我正在使用导入所有其他文件的整体site.scss文件。Mindscape Web Workbench Sass unknown mixin

/*** Infrastructure ***************************************/ 
    /**********************************************************/ 
    @import "../../Infrastructure/_Common"; 
    @import "../../Layouts/Layout1/_Layout"; 

    /*** Theming **********************************************/ 
    /**********************************************************/ 
    @import "_Theme"; 

我在_Common中定义的Mixins在_Theme中是未知的。当site.css被编译时,它一切正常,但Mindscape Web Workbench的intelisense认为mixins是未定义的。有没有一种方法让插件知道这些mixin是被定义的?

回答

2

“@import”的SASS语法与.Net的语法冲突。在.Net中使用SASS时,请使用关键字“@ reference”替换“@import”,并注释掉@reference(s)。有关更多信息,请参阅http://getcassette.net/documentation/AssetReferences

从上面你的代码将是:

/*** Infrastructure ***************************************/ 
/**********************************************************/ 
/* 
@reference "../../Infrastructure/_Common"; 
@reference "../../Layouts/Layout1/_Layout"; 
*/ 

/*** Theming **********************************************/ 
/**********************************************************/ 
/* 
@reference "_Theme"; 
*/