nuxt.js (ssr) - purgecss inline
ms-webdev opened this issue · 3 comments
Hi,
do you have a solution to embed the purgecss result to a nuxt-ssr-app, inlined?
Your plugin only works when I set this nuxt build option to:
extractCSS: true
when I set this option to 'false' then nuxt will build the whole css to my production app and not the purgecss result.
You find the build snippet here:
github.com/ms-webdev/nuxt-express-quick-start
I hope you can help me
Hi, sorry I didn't get to you earlier.
at the moment purgecss-webpack-plugin only works with extractCSS: true
because it needs those css files
Is there any way to make it work when using inline CSS? Still having this issue in a quite large e-commerce that we're building in Nuxt.
I think this issue should be re-opened since it's not solved nor discussed either.
Poking @Atinux @alexchopin @pi0 for posible feedback on this.
@alexjoverm you could use the postcss-purgecss instead, you will have to add the postcss loader to your webpack config and then add purgecss as a plugin