Strip comments from CSS using
strip-css-comments
$ npm install --save-dev grunt-strip-css-comments
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
stripCssComments: {
dist: {
files: {
'dist/app.css': 'src/app.css'
}
}
}
});
grunt.registerTask('default', ['stripCssComments']);
See the strip-css-comments
options.
MIT © Sindre Sorhus