chenzhutian / hexo-all-minifier

A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.
MIT License
277 stars 30 forks source link

Can I run this plugin only during generate command and not on serve ? #40

Closed naveensky closed 6 years ago

naveensky commented 6 years ago

Currently, the minify instructions are run everytime I run hexo generate and hexo server

Is there a way I can disable this command and run only during hexo generate command?

MZIchenjl commented 6 years ago

set node NODE_ENV to be development may works

chenzhutian commented 6 years ago

Thanks @MZIchenjl gave the solution!