How to grunt-uglify multiple script files while keeping folder structure

后端 未结 5 1721

I have not found a good way to grunt-uglify multiple script files spread over multiple folders while keeping the folder structure including the uglified files intact. The on

5条回答
  •  轮回少年
    2020-12-23 23:21

    Actually you can use following approach:

    uglify: {
      all: {
        files: [{
          expand: true,
          cwd: 'js/',
          src: ['*.js', '**/*.js'],
          dest: 'js-min/',
          ext: '.min.js',
        }],
      },
    }
    

提交回复
热议问题