Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude: '*.min.js' can not work #11

Closed
lewky opened this issue Aug 18, 2018 · 2 comments
Closed

exclude: '*.min.js' can not work #11

lewky opened this issue Aug 18, 2018 · 2 comments

Comments

@lewky
Copy link

lewky commented Aug 18, 2018

I found config '*.min.js' cannot work. Should add prefix path like '**/'. It can work in my hexo-Next theme as follows:

neat_js:
  enable: true
  mangle: true
  output:
  compress:
  exclude:
    - '**/*.min.js'
@inkss
Copy link

inkss commented Dec 30, 2019

这里,是 minimatch() 这个判断方法的问题,** 匹配了多个目录

https://github.com/rozbo/hexo-neat/blob/28969670e8aae5ca1f72d81ed91e4a4eaeb5d1ef/lib/filter.js#L83

@yansheng836
Copy link

I used this plug-in in yilia theme. The following configuration is valid and should have been fixed later.

exclude:
    - '**/*.min.js'

I think this issue can be closed.

@ohroy ohroy closed this as completed Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants