grunt-contrib-uglify
grunt-contrib-uglify copied to clipboard
Compress the entire file, the result will be stopped after the 1 files are compressed.
grunt.initConfig({
uglify: {
build: {
files: [{
expand: true,
cwd: 'src/',
src: ['*.js'],
dest: 'src/',
extDot: 'last',
ext:'.min.js'
}]
}
}
});
I would like to compress all the JS files in the target folder to the publication directory, but always can only generate a file