问题
I'm trying to use sass package instead of node-sass in Nuxt.js. I found a config like this;
// vue.config.js
module.exports = {
css: {
loaderOptions: {
sass: {
implementation: require('sass'), // This line must in sass option
},
},
}
}
but I couldn't figure out where to put this code in Nuxt.js.
回答1:
Its already pointed on documentation.
nuxt.config.js
:
build: {
...
loaders: {
sass: {
implementation: require('sass')
},
scss: {
implementation: require('sass')
}
}
...
}
来源:https://stackoverflow.com/questions/57249076/is-there-any-way-to-use-sass-instead-of-node-sass-default-for-sass-loader-in-n