Beginners use grunt to ask for help on automatic execution! ! !

  node.js, question

clipboard.png
As shown in the figure, I introduced the merged and compressed js file and css file on the page, and then I need to manually execute the merge and compression command every time I modify the js or css file, so that the new modification will be obtained by index.html. How can I modify the production file and automatically compile it into build?

Have you seen itgrunt-contrib-watch?

//How about this routine?  Monitor the changes of all. js files, and trigger the compression task once there are changes.
 watch: {
 scripts: {
 files: ['**/*.js'],
 tasks: ['uglify']
 bracket
 },