Nuxt.js Component CSS Style Missing

Mar 11, 2020

If you have some global CSS styles, configure it at nuxt.config.js#css.

If you define it at components or pages via <style>, the CSS might not be loaded if the component or page is not loaded (especially when code splitting is used - and I believe Nuxt.js pages/route used code splitting).

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.