diff options
Diffstat (limited to 'tools/minify.js')
-rwxr-xr-x | tools/minify.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/minify.js b/tools/minify.js index 105c4eb..159e34b 100755 --- a/tools/minify.js +++ b/tools/minify.js @@ -52,12 +52,24 @@ const args = parseArgs(argv, { break case 'css': - console.log(new CleanCSS({level:2}).minify(content).styles) + console.log(new CleanCSS({ + level: 2 + }).minify(content).styles) break case 'js': console.log((await minifyJs(content, { - ecma: 5 + mangle: { + eval: true, + keep_classnames: false, + keep_fnames: false, + module: false, + toplevel: true, + }, + ecma: 5, + format: { + comments: false + } })).code) break } |