So I am aware you could use different configs for development, but this is really a unsatisfactory solution, since I have to maintain (copy+paste) 2 configs and the commands get more complicated (ie. needlessly increases development complexity).
So I propose using the convention variable jekyll.environment to determine if minification should occur. According to the jekyll docs the jekyll.environment is set to developmentper default. To set it to production one does:
JEKYLL_ENV=production bundle exec jekyll build -t
To support flexibility a new option could be introduced:
So I am aware you could use different configs for development, but this is really a unsatisfactory solution, since I have to maintain (copy+paste) 2 configs and the commands get more complicated (ie. needlessly increases development complexity).
So I propose using the convention variable
jekyll.environment
to determine if minification should occur. According to the jekyll docs thejekyll.environment
is set todevelopment
per default. To set it to production one does:To support flexibility a new option could be introduced:
If true, only minifiy if
jekyll.environment != 'development'
, if false - behavior as before.This relates to #30 and #12.
btw. thanks for the great plugin ❤️