mhanberg / jekyll-postcss

A plugin to use PostCSS plugins like Autoprefixer or Tailwind CSS with Jekyll.
MIT License
66 stars 12 forks source link

Clearly document JEKYLL_ENV requirement on build environments #14

Closed mhanberg closed 4 years ago

mhanberg commented 4 years ago

I think this needs to be more stressed. I figured the reason you mentioned it is that you're using the env variable in the postcss config on your demo repo only. I didn't realize it would hang in netlify and y local docker env.

Originally posted by @steveoh in https://github.com/mhanberg/jekyll-postcss/issues/8#issuecomment-632426397

Acceptance Criteria

steveoh commented 4 years ago

This bit me in docker as well as netlify.

currently debugging this issue now...

/usr/local/lib/ruby/2.7.0/json/common.rb:156:in `parse': 783: unexpected token at '⚠️  Tailwind is not purging unused styles because no template paths have been provided. (JSON::ParserError)
If you have manually configured PurgeCSS outside of Tailwind or are deliberately not
removing unused styles, set `purge: false` in your Tailwind config file to silence
this warning.
mhanberg commented 4 years ago

Can you elaborate on what JEKYLL_ENV has to do with that error? To me it looks like a tailwind misconfiguration.

steveoh commented 4 years ago

Can you elaborate on what JEKYLL_ENV has to do with that error? To me it looks like a tailwind misconfiguration.

Sorry yah they arent related. I should open a new issue if I wanted some help with that. I'll see if I can get it working first.

I should elaborate that my dev build env is docker so the jekyll build fails for me in development.