diff --git a/README.md b/README.md index c7e2375..2109f75 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,11 @@ $ npm install hexo-uglify --save ```yaml uglify: - mangle: true - output: - compress: exclude: - "*.min.js" + mangle: true + # output: + # compress: ``` - **exclude**: Exclude files. Use [glob expressions](https://github.com/micromatch/micromatch#extended-globbing) for path matching. diff --git a/index.js b/index.js index 1912d48..25862ed 100644 --- a/index.js +++ b/index.js @@ -3,10 +3,10 @@ /* global hexo */ hexo.config.uglify = Object.assign({ + exclude: ['*.min.js'], mangle: true, output: {}, - compress: {}, - exclude: '*.min.js' + compress: {} }, hexo.config.uglify); hexo.extend.filter.register('after_render:js', require('./lib/filter'));