問題タブ [guard-sass]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
464 参照

sass - Guard not compiling all the SCSS stylesheets

When you have a wrapper stylesheet that imports other using sass @import, and when using guard to watch for changes, it wont compile the wrapper stylesheet automatically if you are only changing one of the imported files. Example:

When modifying for example 480up.scss, it compiles as expected into 480up.css, but Guard is not importing it into the viewports.css, seems like is not recognizing the dependency. This use is important when you want to implement responsive in one compiled css, but writing your code in separate scss files.

If you just use the sass command you have the expected behavior, if you use Guard, not.

Is there some workaround for this? Something extra that I need to configure?