Closed reyemtm closed 5 years ago
Ok
PR is welcome.
Also you can set the ENV to development
to enable minifier.
const isEnabled = process.env.NODE_ENV !== 'development'
&& (hexo.config.hasOwnProperty('all_minifier') === false || hexo.config.all_minifier === true);
Here is a working line of code to add to index.js to run the minifier only when generating the site, not when serving.