-
-
Save jonschlinkert/4007536 to your computer and use it in GitHub Desktop.
Grunt-reload monitorizar multiples archivos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
less: { | |
all: { | |
src: '*.less', | |
dest: 'style.css' | |
} | |
}, | |
watch : { | |
files : '<config:less.all.src>', | |
tasks : 'less reload' | |
}, | |
reload: { | |
proxy: {} | |
}, | |
server : { | |
port : 8000 | |
} | |
}); | |
// External tasks | |
grunt.loadNpmTasks('grunt-less'); | |
grunt.loadNpmTasks('grunt-reload'); | |
// Custom tasks names | |
grunt.registerTask('default', 'less'); | |
grunt.registerTask('dev', 'server reload watch'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment