Closed aryehraber closed 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.
extractors
As per Adam's suggestion: https://github.com/spatie/laravel-mix-purgecss/issues/40#issuecomment-451611053
Build seems to be failing because during yarn example Mix auto-installs a few dev dependencies and then requires a re-run:
yarn example
Updating build-example.sh with a hot fix for this.
build-example.sh
Thansk!
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