digitalsparky / jekyll-minifier

Jekyll HTML/XML/CSS/JS Minifier utilising yui-compressor, and htmlcompressor
GNU General Public License v3.0
245 stars 25 forks source link

Disable for jekyll-watch #12

Closed ygd closed 6 years ago

ygd commented 7 years ago

It would be smoother while developing if you can disable the minifier while jekyll serve (jekyll watch) is active. Having an option to activate the minifier for serve like jekyll serve --minify would be also cool.

Or only running the minifier by jekyll build

arpith20 commented 7 years ago

You can have multiple configuration files. One with jekyll-minifier disabled for use with jekyll serve and the other with it enabled for use with jekyll build

jekyll serve --config _config_nominify.yml
jekyll build --config _config_minify.yml
kenman345 commented 6 years ago

if you use rake you can set up your serve and builds to use different configs or modify the config before serving or building the page.