spatie / laravel-mix-purgecss

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

Requiring the module in the Mix configuration #9

Closed alexpgates closed 6 years ago

alexpgates commented 6 years ago

Quick question regarding requiring the module in the Mix configuration.

The readme shows:

require('laravel-mix-purgecss')();

I was running into issues until I removed the the trailing ()

Am I missing something, or is that just a typo? Things seem to be working just fine now (my file is now 66% smaller, and everything looks great!) - but I wanted to double check, just in case. Apologies for my lack of experience with laravel mix / webpack. And, of course, thank you for all you do for the community. :)

mikerockett commented 6 years ago

Same thing here – I think the readme just needs to be updated…

the94air commented 6 years ago

Me too.

sebastiandedeyne commented 6 years ago

Yeah, gotta drop the brackets. I accidentally reverted some readme changes, sorry for the confusion!

the94air commented 6 years ago

No problem :smile:. I tried it out and it is for sure a Zero-config package. :ok_hand: thanks.