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
|
In the release notes for WW 3, it says "We’ve also made compilation smarter about dependencies. If you have a file A which imports file B, and you change and save file B, we’ll recompile file A as well." I have a base scss file that is imported into 3 other scss files (the base uses variables for colors, and then there are three theme files that have different values for the variables.) I would like it if every time I made a change to the base file, it recompiled all the theme css files, and it seems like that should be the case in WW3. However, making changes to the base files does not trigger compilation in the others that import it. Is there something I have to do to make this happen? Also, if I set the compile options to :compressed, the .css file is compressed, but the .min.css file is only compact. Ideally, I'd like the .css file to be expanded or nested, and the .min.css file to be compressed. Is this possible? |
|
|
That ought to work, and you shouldn't need to do anything to make it work. Can you (a) check the build number of Web Workbench (you can see it in Extension Manager) and (b) send us a minimal repro project so we can investigate why it isn't happening? Thanks! Minification is a separate process to compilation. If you're already minifying through Sass compiler options, you can probably turn off minification. There's currently no settings to control minification. However we'll check our minifier settings to see if we can increase the compression level so that you can have the expanded / compressed versions as suggested. |
|
|
The build # is 3.0.38.19767 . I'll email in a zipped minimal project in a few hours when I get a chance. And thanks on the minification work. It would be nice to have that compiled, nested, non-compressed CSS file alongside a highly compressed and minified file during development. |
|
|
I've attached a zipped solution. It still occurs as I described. The scss files are in content/css . If you modify content/css/base/base.scss and save it - content/css/theme1/theme1.css and content/css/theme2/theme2.css are not recompiled. I believe this is not the expected behavior. |
|
|
Thanks for the extra info. It looks like we weren't detecting the dependency when the importing file was in a different directory from the base file. I've committed a fix for this, which will be included in the next nightly build. This will be available from about 1200 GMT (for download and installation instructions see http://www.mindscapehq.com/forums/thread/281069). Please let us know if you still see problems with the updated build! |
|
|
Finally got a chance to test out the new nightly build and it works fine. Thanks for the fix! |
|
|
Hey, my account name is my email address. Can you change it to something else, like chrisboylan? I tried to change it myself, but couldn't and would prefer if my email address weren't posted. Thanks. |
|
|
Just realized my username isn't updated in the index. Probably just needs an updated post. So, everyone can ignore this last reply. |
|