This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
i have a _base.scss file that contains variables i want to access in other partials, and so i have a:
atop most of those partials. it also has my reset styles. the problem is that the final CSS file that @imports these partials has those reset styles duplicated many, many times. i'm also @importing my mixins into each partial. i would assume that the SASS compiler is smart enough to include the styles once for the project. i can't tell if this is a web workbench problem. for now i've removed all styles from the partials that are reimported across other files (so all that is repeated in the final, rendered CSS are the comments about my variables) which should be stripped out at production. that's fine i guess, but it doesn't seem like it should be working this way. thanks jonah |
|
|
No this is actually the behavior of the Sass compiler. You should avoid keeping your reset styles in a base, rather just have your variable and mixins declared which wont directly emit any styles and then include that into a separate reset stylesheet.
|
|
|
thanks. that's actually what i ended up doing. strange that it's not a smarter compiler. i guess that could get hairy though. thanks jeremy :) |
|