mhanberg / jekyll-postcss

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

Development cache does not work when you build multiple css files #18

Closed mhanberg closed 3 years ago

mhanberg commented 4 years ago

If you are building multiple css files, development caching does not work.

Your css will still be successfully processed, but it will take up to 3 seconds every build, even if you are only editing markdown files.

mhanberg commented 4 years ago

The converter uses the same object instance for every document, and the the converter is not passed the filename, only the content to convert.

I don't know if if this will be fixable. I might have to clarify that you can only have one stylesheet if you want caching to work 😐.

bvirlet commented 3 years ago

I'm having the same problem (20s builds instead of 1s) with multiple stylesheets. While I understand why there isn't a solution for this, is there a potential workaround?

mhanberg commented 3 years ago

I believe the work around is to not build multiple css files.

mhanberg commented 3 years ago

There is now a feature to disable the cache, this should solve this i think.