Closed bovas85 closed 5 years ago
As you don't use the classes "directly" in code, you have to whitelist them.
Try /^\.page/
(or /page/
) as pattern. /^page/
won't work because classes start with a dot :exclamation:
this worked for me
paths: [
'assets/css/*'
],
whitelist: [
'body',
'html',
'nuxt-progress',
'page-enter-active',
'page-leave-active'
],
as that folder is not in the defaults I needed to add it there
Scanning your css
folder will lead to including all CSS you've created in the files of that folder.
I don't think that's what you wanted :thinking:
hmm let me try your solution then, good point
nope, that doesn't work. Maybe the keyframes are not being ignored?
yep, this worked whitelistPatterns: [/^keyframes/]
, although I'm not sure why it's being purged
There you go :relaxed:
I noticed my page transitions are gone once I add purgecss. Removing the module re enables them.
My sass:
My nuxt config