I have this grunt task:
watch: {
files: ['resources/assets/sass/*.scss'],
tasks: ['csscomb:sortAll', 'sass:theme', 'sass:mail']
},
csscomb: {
options: {
config: 'csscomb.json'
},
sortAll: {
expand: true,
cwd: '.',
src: ['resources/assets/sass/*.scss'],
dist: 'resources/assets/sass/',
ext: '.scss'
}
},
When I save any scss file grunt tries to run the tasks I've specified, but csscomb:sortAll changes scss files and triggers another file change. the grunt watch runt tasks for the second time and the result is running these three tasks two times instead of once. What would you suggest?
csscombfrom the watch task and if you wanna runcsscombjust call it manually..? - aug