Commit 6205c51 1 parent 2ec8019 commit 6205c51 Copy full SHA for 6205c51
File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Install the module with: `npm install uglifyjs-folder -g`
20
20
-y --harmony Uses uglify-js-harmony as a minifier
21
21
-p --pattern Specifies a comma separated glob patterns for the file selections. Default: **/*.js
22
22
--pseparator Specifies the separator for the pattern input. Default: ,
23
+ --version Prints the current version from package.json
23
24
-h --help Print this list and exit.
24
25
## Examples
25
26
$ uglifyjs-folder test-folder
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ var cli = meow({
17
17
' -y --harmony Uses uglify-js-harmony as a minifier' ,
18
18
' -p --pattern Specifies a comma separated glob patterns for the file selections. Default: **/*.js' ,
19
19
' --pseparator Specifies the separator for the pattern input. Default: ,' ,
20
+ ' --version Prints the current version from package.json' ,
20
21
' -h --help Print this list and exit.'
21
22
] . join ( '\n' )
22
23
} ) ;
23
24
24
-
25
25
var result = uglifyFolder ( cli . input [ 0 ] , {
26
26
comments : cli . flags . comments || cli . flags . c || false ,
27
27
output : cli . flags . output || cli . flags . o ,
@@ -31,7 +31,7 @@ var result = uglifyFolder(cli.input[0], {
31
31
patterns : ( cli . flags . pattern || cli . flags . p || "**/*.js" ) . split ( cli . flags . pseparator || ',' )
32
32
} ) ;
33
33
34
- if ( result ) {
34
+ if ( result ) {
35
35
console . log ( result ) ;
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments