I have a new Bootstrap project. Everything works, livereload, grunt
command, watch
command and cssmin
command, so these tasks are ok.
But, when I run grunt watch
, there are not minified css files generated (I mean, when any less file change and watch task run automatically). So, I need to add cssmin task to watch task in gruntfile. I don't know how. My gruntfile watch task looks like:
watch: {
options: {
livereload: true,
},
src: {
files: '<%= jshint.core.src %>',
tasks: ['jshint:src', 'qunit', 'concat']
},
test: {
files: '<%= jshint.test.src %>',
tasks: ['jshint:test', 'qunit']
},
less: {
files: 'less/**/*.less',
tasks: 'less'
}
},
How can I add the cssmin task? Thank you in advance.