How Nuxt load CSS from node_modules in dynamically imported component
Hi guys, I'm wondering about how Nuxt load CSS from
node_modules
. I think every page that importing CSS like this import "pkg/some.css"
or any component that used in a page that import a CSS, the CSS will be loaded into head.
I have this simple Slider
component that importing CSS.
Slider
component is perfectly dynamically imported. But, I see that the CSS is loaded right away despite the component using it is lazy-loaded. Is there a way to lazy-load the CSS too?
0 Replies