Problem with grunt concat - Stack Overflow
PHP中文网
PHP中文网 2017-05-19 10:44:50
0
1
553

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

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
迷茫

Do a clean first.

grunt-contrib-clean

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!