ohroy / hexo-neat

auto Minify html、js、css and make it neat
74 stars 11 forks source link

Some fixes and optimizations #8

Closed mygu closed 6 years ago

mygu commented 6 years ago
  1. I found that exclude configuration didn't work, so I fixed it.

  2. When a computer is not performing well, printing logs can lead to poor compilation performance. So I added a switch configuration for printing logs (the default is on, so it is compatible). I've updated README. md, the configuration now looks like this:

neat_enable: true

neat_html:
  enable: true
  logger: false
  exclude:

neat_css:
  enable: true
  logger: false
  exclude:
    - '*.min.css'

neat_js:
  enable: true
  mangle: true
  logger: false
  output:
  compress:
  exclude:
    - '*.min.js'
ohroy commented 6 years ago

thanks!

mygu commented 6 years ago

@rozbo NP. If you have time, I hope you can release a new version of the NPM package.