I have been developing on the front end for years but I am finally making the move towards developing using Grunt and moving away from tools like Prepros and Koala for my Sass compilation.
My main question is, how do I force my grunt tasks to remove all comments from the compiled and minified CSS generated from my SASS files?
Currently I have the following gruntfile.js file snippet setup but this only removes single line comments. I want all of my compiled css to be in one big line with no spacing and no comments:
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist:{
files: {
'css/main.css' : 'css/main.scss'
},
options: {
style: 'compressed'
}
}
}
})
Any help would be greatly appreciated.