From cb77fb455767b47f0d8e68db72467bc6eedb3db0 Mon Sep 17 00:00:00 2001 From: Uiolee <22849383+uiolee@users.noreply.github.com> Date: Fri, 17 May 2024 17:05:09 +0800 Subject: [PATCH] docs: update readme (#407) --- README.md | 6 +++--- index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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'));