hexo-uglify

Minify JavaScript files with Terser.

Usage no npm install needed!

<script type="module">
  import hexoUglify from 'https://cdn.skypack.dev/hexo-uglify';
</script>

README

hexo-uglify

Build Status NPM version

Minify JavaScript files.

Installation

$ npm install hexo-uglify --save

Options

uglify:
  mangle: true
  output:
  compress:
  exclude:
    - *.min.js
  • exclude: Exclude files. Use glob expressions for path matching.
  • mangle: Mangle file names.
  • output: Output options.
  • compress: Compress options.

Refer to the docs for more options and details.