DEV Community

Rikusen / りくせん
Rikusen / りくせん

Posted on

The 2 ways to use global stylesheet in Nuxt

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.

Top comments (0)