依赖于 GruntJs ~0.4.0
监控 JS 文件改变来运行预定义的Tasks
Demo:
watch: { scripts: { files: [‘src/**/*.js‘], tasks: [‘jshint‘], options: { spawn: false } } },
引用: https://www.npmjs.com/package/grunt-contrib-watch
时间: 2024-10-13 18:47:08
依赖于 GruntJs ~0.4.0
监控 JS 文件改变来运行预定义的Tasks
Demo:
watch: { scripts: { files: [‘src/**/*.js‘], tasks: [‘jshint‘], options: { spawn: false } } },
引用: https://www.npmjs.com/package/grunt-contrib-watch