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

Option to disable and enable minification without env variables #55

Open bediu opened 3 years ago

bediu commented 3 years ago

Right now to enable or disable this plugin, the only options are with JEKYLL_ENV set to production/development or with a hack

jekyll-minifier:
  exclude: '**.*'

^ which only works if the JEKYLL_ENV variable is set to production

The thing is that a lot of us don't necessarily make use of env variables to work with jekyll, we would rather a minify: true/false option in _config.yml that does not require the JEKYLL_ENV variable set.

SamanDaneshvar commented 3 years ago

I absolutely agree. A boolean in _config.yml would be really nice.