DEV Community

Discussion on: How to Remove Unused CSS

Collapse
 
93lucasp profile image
Luca Spezzano

They should do the same thing, I found faster and easier to implement PurgeCSS with that plugin :)

Collapse
 
dennisk profile image
Dennis Keirsgieter

Could you tell me maybe then why i still have classes repeated in my code sometimes with nuxt? It feels like it doesn't know about my framework (buefy in this case). So sometimes its duplicated or even include 3 sometimes on some rare occasions...

Thread Thread
 
93lucasp profile image
Luca Spezzano

Do you import buefy in your css? I mean before that you check your css with PurgeCSS the code of Buefy is already there?

Thread Thread
 
dennisk profile image
Dennis Keirsgieter • Edited

I just use the nuxt-buefy module for that. So i assume that gets loaded first before the build stuff is being ran... Are you using this by any chance aswell?

The upper is my local dev and the bottom is the final build
thepracticaldev.s3.amazonaws.com/i...

Thread Thread
 
93lucasp profile image
Luca Spezzano

Yes it could be, no actually I'm not using nuxt-buefy