Skip to content

The 2 ways to use global stylesheet in Nuxt

rikus3n profile image Rikusen / りくせん twitter logo ・1 min read  

The first way is, write any stylesheet in layout/default.vue. This way is very simple and good for small project. You won't need any another file.

and as alternative, you can make style.css file in aseets folder and import it in default.vue. Or, just make the file and load it in nuxt.config.js.

The second way is, use @nuxtjs/style-resources. I think this is not good way because this causes mess the project.

twitter logo DISCUSS
markdown guide
Classic DEV Post from Jul 26 '19

🎩 JavaScript Enhanced Scss mixins! 🎩 concepts explained

In the next post we are going to explore CSS @apply to supercharge what we talk about here....

Rikusen / りくせん profile image
I'm student and just a person.