Generate only minified CSS files
naturalGroove opened this issue · 8 comments
A very useful feature would be the ability to set only minified versions of the CSS files to be generated.
this is definitely an interesting feature request.
I am going to take a week or so before I look into this and submit the patch / release.
Although it would be interesting to see how this affects backward compatibility though - for existing users who are used to seeing the "non-minified" files generated automatically.
I second this request!
Sorry - I got distracted a bit . I will look into this as this is definitely useful .
So - the newer release 0.7.4 contains a new property called - outputFormat
that can be customized to generate only minified files or css files only or both . Default is both.
Refer to README for outputFormat property for more details. The old property disableMinifiedFileGeneration has been deprecated in favor of this.
So - if you had earlier set disableMinifiedFileGeneration
to be true, then you can set outputFormat
to be cssonly
to achieve the same effect.
If you had earlier set disableMinifiedFileGeneration
to be false ( default value for the property ) , then you can set outputFormat
to be both
( again , default value for the new property as well ).
Works as expected... but maybe it's better to have min.css at the end of the file name if only minified file is set to be generated :)
Works as expected... but maybe it's better to have min.css at the end of the file name if only minified file is set to be generated :)
Yes, I second this, it would be consistent to the best practices and other softwares.
Works as expected... but maybe it's better to have min.css at the end of the file name if only minified file is set to be generated :)
I guess you are referring to the scenario where you apply the 'watcher' on a directory and the output gets generated in the targetDirectory . As it stands today there is no way to specify the output name of files to sass watcher when the input is a directory. Hence the inability to have a .min.css suffix in that case.
But if there is no watcher on a directory - if we manually save a file, the suffix should correctly appear in each case though.
If there are no issues with this feature - I am going to close this issue. Feel free to log a new one if any issues is encountered.