gruntjs / grunt-contrib-cssmin

Compress CSS files.
http://gruntjs.com/
MIT License
793 stars 147 forks source link

feature request - option to delete (single) source file once compiled #275

Closed StudioSpindle closed 7 years ago

StudioSpindle commented 8 years ago

Would it be an idea to add the option to delete the source file if you're minifying from one single file?

I have a specific use case where I compile multiple SASS source files into a uncompiled css file. Then with css min I minifiy the file for a production task and add a '.min' to the filename.

sKopheK commented 7 years ago

dunno if I understand your problem right, but you can use other grunt tasks to remove any files you want

XhmikosR commented 7 years ago

You can achieve this with http://gruntjs.com/api/grunt.file#grunt.file.delete or other plugins.