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

Is it possible to switch this off during development but on in production automatically? #30

Closed Booligoosh closed 6 years ago

Booligoosh commented 7 years ago

Is it possible to switch this off during development but on in production automatically?

Convincible commented 6 years ago

Yes please!

nfrankel commented 6 years ago

You can have 3 different config files:

And set different configurations for development and production, e.g.:

jekyll build --config=_config.yml,_config/_config_prod.yml
Convincible commented 6 years ago

Aha! - thanks.

alexandermeindl commented 6 years ago

It would be nice, if development environments are excluded automatically, like it is supported by https://github.com/penibelst/jekyll-compress-html With this functionality you have a more easy deployment and only one _config.yml file.