Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
uiolee committed Apr 19, 2024
1 parent a0ad021 commit 7439a02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

0 comments on commit 7439a02

Please sign in to comment.