DEV Community

Discussion on: How can i load sass files on nuxt with sass-loader ?

Collapse
 
nathanbland profile image
Nathan Bland

Is this a fresh project you are just getting started on?
If it is, I would recommend just using create-nuxt-app, which can bundle bulma for you out of the box.

If you already have some work done, then the next step would be to include bulma in the nuxt.config.js as you mentioned. To do that, take a look at their docs on css configuration here: nuxtjs.org/api/configuration-css

If this still isn't working, something might be off with your configuration of nuxt itself.

Collapse
 
silverman42 profile image
Sylvester Nkeze

Wow, several hours of neck pain and headaches which would have been avoided if i had just done this

module.exports={
 css: ['bulma','@/assets/custom.scss']
}

Instead of

module.exports={
 css: ['~bulma/bulma','@/assets/custom.scss']
}

Thanks a lot, Nathan. You are a life saver.

Collapse
 
nathanbland profile image
Nathan Bland

Glad I could help!