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 the pro version and have set it up to minify my only css file - it does not import any other files via the Workbench Settings screen. I have also set it up to minify my js files - I do include a number of files in this case. When I save the scss file, the css file is automatically created which is great. However, the minified version is not created. If I open and close the Mindscape Settings window (without doing anything), the minified css file is created. I am sure it used to work and I haven't changed any settings! I have v3.2.1144.23109 of Web Workbench |
|
|
Yes this should work. The settings window causes a "save all" so the same settings should be applying. For some extra context can you let us know if this is a Compass project and what other extensions do you have installed?
|
|
|
Yes, it is a Compass project. It is also using Zurb Foundation V4. VS has the following extensions installed: Microsoft ASP.NET and Web Tools NuGet Package manager Visual Studio Extensions for Windows Library for JavaScript I don't think anything has changed configuration-wise, but I seem to remember updating Workbench recently? VS says it was installed on 10/01/2014. Cheers, Gordon |
|
|
is there a solution to this? Should I just un-install extension and install again? Will that lose the configuration I have in the current project? |
|
|
Yes please try this - additionally I have uploaded a copy of the prior gallery release here: https://s3.amazonaws.com/assets.mindscape.co.nz/Downloads/Mindscape.WebWorkbench.Integration-20131221.10.vsix which you can try to see if reverting to the earlier version produces a change in this behaviour assuming the re-install doesnt.
|
|
|
I Tried un-installing and re-installing WorkBench ... didn't work. I tried installing the prior release of WorkBench ... didn't work. I usually run Visual Studio "as Administrator", so I tried running VS normally and it didn't help. If I update an SCSS file, the CSS file updates but not the minified version. If I manually update the CSS file, the minified version IS updated!? |
|
|
Do you have output_style set to :compressed in config.rb? Because you are compiling with Compass it sounds like this isn't set. There also wont be a .min.css produced as the .css will just be minified directly. This contrasts slightly with the standard Sass compiler where a .css and .min.css are produced.
|
|
|
I changed the setting to :compressed and the .css file was minified (compressed?). Is it possible to create a non-minified .css file, which is useful for texting, but also create a .min.css as per the WorkBench settings? It works when I save the WorkBench settings within VS. I thought the process was - I update and save .scss, the .css file is then updated which then causes the .min.css file to be created / updated. Is that possible? Minifying is supposed to be part of the Pro version, isn't it? |
|
|
WorkBench is a very useful product ... but it would be even better if I could get some support! Can someone help me fix the issue, or suggest an alternative working method. |
|
|
Hi Gorden, Sorry for the delay, Ive been away sick for the past few days. Yes the process is correct if you are using the standard Sass compiler, but with Compass we call out to the Compass compiler which has its own process for compilation and minification so the behavior is for it to produce the single .scss file. I suspect what you must be seeing when updating the settings (which as mentioned above triggers a Save All) is that the Compass compiler runs, updating the .css file and then we perform a subsequent minification on the .css file as part of "saving" it which then produces the .min.css. So one option here would be to do a subsequent "save" on the .css files generated by Compass to perform a minification action (if thats defined in the project settings) as the call out to the Compass compiler has completed. This would generate the .min.css alongside the standard output from Compass. Thoughts?
|
|
|
Saving the .css does does cause the .min.css file to be created - however, that is a manual step that needs to be remembered! Maybe the simplest option is to use the Sass compiler for minification, I can switch between "expanded" and "compressed" for debugging purposes. I am only really using Compass because it is a requirement (?) of Zurb Foundation V4. Do you happen to know if it is possible to disable / remove Compass without breaking Foundation? |
|
|
Ive had a bit of a trawl of the docs but I cant actually see where Compass is listed as a requirement? Do you have a link for this? If it is a requirement then I suspect you will need to use the Compass compiler as that includes extra Ruby functions which are widely used within Compass frameworks.
|
|
|
Details are here http://foundation.zurb.com/docs/v/4.3.2/sass.html |
|
|
Did you follow the instructions under "Using Sass Standalone"?
|
|
|
Yes, generally - I seem to remember the instructions were not that great / complete / accurate ;-) |
|