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
|
My usual workflow is to have a styles.scss that @includes my other scss files as modules. After I create a new scss file I have to go into the Web Workbench settings in order to turn off minification and compilation for this file. If I don't do this it will recompile everytime I save, which is not the behavior I'm looking for. I'd like to have Web Workbench automatically tick this checkboxes off when it sees that I have included the file in my styles.scss. It is something CodeKit for Mac does atm, which I'm really happy with - I'd really be thrilled to have this functionality in my Visual Studio environment aswell. Thanks for a great product! You make frontend development in Visual Studio a bliss. Cheers Emil. |
|
|
Just to clarify what you are looking for - what would trigger this? Would it be us checking that a file matched a regex for example (e.g. styles.scss) or the fact that it is including other files?
|
|
|
I think a good way of doing this would be to check if a file is included in another file. Another option could be to add the _ (underscore) prefix as Compass is using in their framework. All files that do not compile by themselves have the underscore prefix. An example file structure would look like this: framework/ _mixins.scss _vars.scss _normalize.scss modules/ _mycomponent.scss _myothercomponent.scss _somerootlevelcomponent.scss print.scss styles.scss in this example only print and styles.scss is compiled directly as default. The rest indicates by the prefixet _ that they are imports and might not work by itself. The other way would be to check all scss files for @import rules and if a file is found in an @import rule it is not compiled directly unless specified manually in the Web Workbench config. /Emil |
|