You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**WARNING!** This is the `master` branch of `laravel-mix-purgecss`. The latest stable release is version [4.1.0](https://github.com/spatie/laravel-mix-purgecss/tree/4.1.0).
12
-
13
-
🚨🚨🚨
14
-
15
-
---
16
-
17
7
This package adds a `purgeCss` option to Laravel Mix, which installs PurgeCSS for you with a set of sensible defaults for Laravel applications.
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
23
+
24
+
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
25
+
30
26
## Installation
31
27
32
28
Before you get started, make sure you're using `laravel-mix` version 5.0.0 or higher.
### Important notice for `mix.postCss` or `postcss.config.js` users
68
+
69
+
When you use `mix.postCss()` or a seperate `postcss.config.js` file, Mix _overrides_ all other PostCSS plugins, including the PurgeCSS instance added by this plugin.
70
+
71
+
To work around this issue, either:
72
+
73
+
1) Include your PostCSS plugins with `mix.options()`
72
74
73
-
Our [`defaultConfig`](https://github.com/spatie/laravel-mix-purgecss/blob/master/src/defaultConfig.js) file contains a set of sensible defaults for Laravel applications.
Custom options can be passed when calling PurgeCSS if necessary. Visit PurgeCSS' [docs](https://purgecss.com/configuration.html#options) to learn more about the available options.
0 commit comments