nuxt-community / amp-module

AMP Module for Nuxt 2
https://codesandbox.io/s/github/nuxt-community/amp-module/
MIT License
204 stars 36 forks source link

Should tree shaking be working? #260

Open eavonius opened 3 years ago

eavonius commented 3 years ago

Hello,

Great plugin first of all. Only thing I've run into is it seems difficult to get tree sharking working.

Out of the two options available (@import css file in layout, specify css file in amp plugin config in nuxt.config) is there any impact on this or tips you can provide?

Thanks!

Beethoven commented 3 years ago

I use tailwind and works perfect the tree shaking. Need
amp: { removeInlineStyles: false } in nuxt.config to use inline styles