spatie / laravel-mix-purgecss

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

Extractor pattern option #61

Closed aryehraber closed 5 years ago

aryehraber commented 5 years ago

This PR adds the ability to simply add a custom extractor regex pattern, without the hassle of creating a new extractors array with a custom extractor class. It still defaults to the currently used pattern, so there should be no breaking changes.

As per Adam's suggestion: https://github.com/spatie/laravel-mix-purgecss/issues/40#issuecomment-451611053

aryehraber commented 5 years ago

Build seems to be failing because during yarn example Mix auto-installs a few dev dependencies and then requires a re-run:

screenshot 2019-01-05 at 14 29 11

Updating build-example.sh with a hot fix for this.

sebastiandedeyne commented 5 years ago

Thansk!