From a4aa2eae25373407afe33522889ecff66343ad2d Mon Sep 17 00:00:00 2001 From: toesbieya <1647775459@qq.com> Date: Thu, 2 Dec 2021 11:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcss=20module=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/full/vue.config.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/vue/full/vue.config.js b/vue/full/vue.config.js index 0f5526d..161a17b 100644 --- a/vue/full/vue.config.js +++ b/vue/full/vue.config.js @@ -18,6 +18,21 @@ module.exports = { lintOnSave: false, productionSourceMap: false, transpileDependencies: ['el-admin-layout'], + css: { + loaderOptions: { + css: { + modules: { + auto: /var.scss$/ + } + }, + sass: { + // https://github.com/sass/dart-sass/issues/1388#issuecomment-916125648 + sassOptions: { + outputStyle: 'expanded' + } + } + } + }, configureWebpack: { name: settings.title, resolve: {