kue
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?
1 replies
How to access environment variables or runtime config outside of Nuxt context?
Hi folks!
I need to access the environment variable outside of the Nuxt context like this:
I have several instance of axios and this is the current structure. Is there a way to preserve this kind of structure without having to rewrite it to composables in order to access env variables or runtime config?
Thank you!
6 replies