简体   繁体   中英

Grunt force watch?

I am running compass on grunt watch. I want grunt watch to always run tasks when it is initiated. I am calling it a force run but it might be called something else. Thank you in advance for solution.

register a task to call the compass task before calling watch.

grunt.registerTask('dev', [ 'compass:dev', 'watch' ]);

to run from the command line just do

$ grunt dev

I'm using grunt-compass and it works fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM