Mindscape Web Workbench Sass unknown mixin

I am currently using Mindscape Web Workbench to create css from sass. I use a generic site.scss file that imports all other files.

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

The mixins that I defined in _Common are not known in _Theme. when the site.css file compiles, everything works fine, but Mindscape Web Workbench intelisense thinks mixins is undefined. Is there a way the plugin will know that these mixins are defined?

+4
source share
1 answer

SASS syntax "@import" conflicts with .Net syntax. When using SASS in .Net, replace "@import" with the keyword "@reference" and comment out @reference (s). See http://getcassette.net/documentation/AssetReferences for more details.

Your code above:

 /*** Infrastructure ***************************************/ /**********************************************************/ /* @reference "../../Infrastructure/_Common"; @reference "../../Layouts/Layout1/_Layout"; */ /*** Theming **********************************************/ /**********************************************************/ /* @reference "_Theme"; */ 
+2
source

Source: https://habr.com/ru/post/1402283/


All Articles