Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.

You can’t perform that action at this time.