The concat task was added to grunt's watch, but I found that concat does an append operation. In this case, the code generated by the previous concat is still there. Is there any way to solve it?
concat : { // concat插件的配置信息
options: {
separator: ';',
stripBanners: true
},
test_grunt : { // 名称而已~
files : {
'public/js/qiniu/upFile.js': ['public/js/qiniu/*.js'],
'public/js/lib/biaoqing.js': ['public/js/lib/*.js']
}
}
},
Every time it is run, it will append to the previous upFile.js, causing the file to get bigger and bigger
Do a clean first.
grunt-contrib-clean