I installed Jekyll Minify and it’s not working. It does not minify HTML, CSS or JS on jekyll build
.
I FTP
the _site
with FileZilla. Any idea why this is happening?
Repository
I installed Jekyll Minify and it’s not working. It does not minify HTML, CSS or JS on jekyll build
.
I FTP
the _site
with FileZilla. Any idea why this is happening?
Repository
Are you building your site with the JEKYLL_ENV=production
enabled?
If not that’s your problem. As per jekyll-minifer’s docs:
** This minifier now only runs when JEKYLL_ENV=“production” is set in the environment **
Where should I insert the tag?
You don’t insert it anywhere. It’s an environment variable.
For Mac and Unix
JEKYLL_ENV=production jekyll build
For Windows
set JEKYLL_ENV=production
jekyll build