spatie / laravel-mix-purgecss

Zero-config Purgecss for Laravel Mix
https://spatie.be/en/opensource
MIT License
874 stars 38 forks source link

Laravel Mix 6 support #90

Closed sebastiandedeyne closed 3 years ago

sebastiandedeyne commented 4 years ago

This branch correctly compiles the test stylesheet, but there are a few more (I believe upstream) issues that need to be resolved before this is stable.

Once the stylesheets builds without these workarounds, this can be merged. Either way, I'm waiting on a stable Laravel Mix 6 release to tag this one.

adamwathan commented 4 years ago

Fix is to install postcss in the example, you need to manually install postcss most of the time now as PostCSS 8 is meant to be used as a peerDependency 👍

From postcss-loader docs:

image

thecrypticace commented 4 years ago

The latest Laravel Mix v6 beta now installs PostCSS 8 if it's not installed in the root package.json file. The postcss-loader error also disappeared after moving PostCSS to a peer dependency in Mix.

sebastiandedeyne commented 3 years ago

Released!