→ grunt watches
→ grunt contrib-watch (quand y'a contrib devant un plugin → grunt team)
<npm install grunt-contrib-watch –save-dev
→ Bonne habitude : aller dans le get started du plugin et just pécho le code associé.
(...) watch:{ options: { spawn: false, }, script: { files: ['builds/development/**/*.html', 'components/scripts/**/*.html', 'components/sass/**/*.scss'], // les fichiers a surveiller tasks: ['concat', 'sass'], // les tâches à lancer } }, (...) grunt.loadNpmTasks('grunt-contrib-watch'); (...) grunt.registerTask('default', ['concat', 'sass', 'watch']