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
|
Is there a way to set the style to something other than :nested ? I like the web workbench very much but I can't seem to figure out how to generate css from scss in a compact style. |
|
|
Compact style isn't supported in the current build. We need to look into whether there is a good way to set this up: there isn't an obvious place in the Visual Studio UI to specify Sass compilation options, and we don't want to put it in Tools > Options because presumably you'll want the style to committed into source control as part of the project, rather than being a per-user setting. As an interim measure, I've implemented a simple compiler directive syntax. If the first line of the SCSS file is of the following form: //* scss-compile-options: [options] then the specified options will be passed to the Sass compiler. For example: //* scss-compile-options: :style => :compact will generate compact output. You can use multiple options separated by a comma as in a Ruby hash. We'll continue to investigate whether there is a better way to set this up (and would welcome your feedback!). In the meantime, the compiler options trick will be included in the next update, which should be up on the Visual Studio Gallery in the next 24 hours or so. |
|
|
Thanks alot, that should do the trick. I'll give it a go in a day or so. |
|
|
Awesome! This is exactly what I was looking for, good interim fix. I like the idea of being able to do *both* per-file and per-plugin settings. But at the very least, this gives me what I need for setting the output style. Thanks! |
|
|
I was trying to digg into the SASS config files to change the output. This makes things lot easier. Thanks a lot! |
|