easy-uglifyjs

Easy to uglify js files in whole directory or any single file

Usage no npm install needed!

<script type="module">
  import easyUglifyjs from 'https://cdn.skypack.dev/easy-uglifyjs';
</script>

README

easy-uglifyjs

Easy to uglify a folder or file. It would exec to the original file, don't use it to your source file. 简单地uglify一个目录或文件的原文件。uglify之前请注意备份。

  Usage: index [options] dir|file

  rewrite to the original file

  Options:
    -h, --help     output usage information
    -V, --version  output the version number
    -v, --verbose  increase verbosity

Install

npm install -g easy-uglifyjs

Example

easy-uglifyjs ./libs
easy-uglifyjs ./index.js
easy-uglifyjs ./index.js -v