Specifying Whitespace Only Parameter for UglifyJS2
I am trying to use grunt to minify javascript files in a project using UglifyJS2.
Does UglifyJS2 have any options like WHITESPACE_ONLY (which exists in the Closure compiler)?
What are the values ââI need to pass in node parameters in GruntFile.js for this effect?
uglify: {
options: {
mangle: { toplevel: false },
squeeze: { dead_code: false }
},
'dist': {
src: '**/*.js',
dest: '**/*.js'
}
}
+3
source to share
No one has answered this question yet
Check out similar questions: