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
gruntjs bundling-and-minification uglifyjs uglifyjs2


source to share


No one has answered this question yet

Check out similar questions:

five
usemin defines configurable step parameters
4
Uglify with sourceMap option enabled does not match the filerev js file it should link to
2
Is it possible to keep / not mess up anonymous functions?
0
infinite loop
0
Using Grunt uglify to manipulate JS code
0
coordinating characters
0
How does the "except" attribute work in Grunt Uglify?
0
UglifyJS2 without node?
0
How to strip all javascript files in subdirectories / subdirectory using Grunt?
0
Preserve directory structures when optimizing js files with grunt + uglify



All Articles
Loading...
X
Show
Funny
Dev
Pics