Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

hexo-uglify

1.1.0 • Public • Published

hexo-uglify

Build Status NPM version

Minify JavaScript files.

Installation

$ npm install hexo-uglify --save

Options

uglify:
  mangle: true
  output:
  compress:
  exclude:
    - *.min.js
  es6: false
  • mangle: Mangle file names (part of uglifyjs/terser's options). Default is true
  • output: Output options (part of uglifyjs/terser's options)
  • compress: Compress options (part of uglifyjs/terser's options)
  • exclude: Exclude files. Use glob expressions for path matching.
  • es6: Enable es6 compression. Default is false
    • When enabled, hexo-uglify will use terser as compressor, otherwise uglifyjs will be used.

Refer to the docs for more options and details.

Install

npm i hexo-uglify

DownloadsWeekly Downloads

45

Version

1.1.0

License

MIT

Unpacked Size

4.57 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar