I'm running a grunt task:
uglify: {
options: {
report: 'gzip'
},
all: {
expand: true,
flatten: true,
cwd: 'js/',
src: ['*.js', '!*.min.js'],
dest: 'js/min',
ext: '.min.js'
}
}
The files are compressed onto one file, while running the report option
options: {
report: 'gzip'
}
I see that the files would be significantly smaller when gzipped, but the output files are not gzipped, they are the size as per the "minified" report.
So the question is, how do I configure uglify to gzip the files also. Or is this a task for a different task?