spatie / laravel-mix-purgecss

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

[Question/need help] Missing styles for some tags generated by markdown (Jigsaw) #45

Closed ghost closed 6 years ago

ghost commented 6 years ago

In my static site built with Jigsaw, I have no pre tags anywhere in my source files but some are generated from markdown files. My code blocks are losing the padding that I added in the scss files.

How do I keep this from happening?

This might be unrelated but I saw this in the README, what exactly does it do?

whitelistPatternsChildren: [/^markdown$/],

Is there an option to tell purgecss to ignore all basic element selectors and only purge classes and ids?

Also, I'm not sure if this helps but after compiling, all the markdown generated tags are wrapped by a div with the class .content.

ghost commented 6 years ago

I think I got it now.