From a83614361d81e485e1be782bdd1309f30f21acc0 Mon Sep 17 00:00:00 2001 From: sn0wdr1am Date: Mon, 19 Jun 2023 00:11:23 +0800 Subject: [PATCH] Replace: node sass with dart sass https://juejin.cn/post/6990170277162254372 --- vue.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vue.config.js b/vue.config.js index 33a63483..c6e087f3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -38,6 +38,13 @@ module.exports = { }, before: require('./mock/mock-server.js') }, + css: { + loaderOptions: { + sass: { + implementation: require('sass') // This line must in sass option + } + } + }, configureWebpack: { // provide the app's title in webpack's name field, so that // it can be accessed in index.html to inject the correct title.