Replace: node sass with dart sass

https://juejin.cn/post/6990170277162254372
pull/4137/head
sn0wdr1am 2023-06-19 00:11:23 +08:00
parent 27dc2c5800
commit a83614361d
No known key found for this signature in database
GPG Key ID: 2D2BCE9C9ABA9BFC
1 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,13 @@ module.exports = {
}, },
before: require('./mock/mock-server.js') before: require('./mock/mock-server.js')
}, },
css: {
loaderOptions: {
sass: {
implementation: require('sass') // This line must in sass option
}
}
},
configureWebpack: { configureWebpack: {
// provide the app's title in webpack's name field, so that // provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title. // it can be accessed in index.html to inject the correct title.