From 9ea6d8278cc8559803d70edc4f63bb9b62d58151 Mon Sep 17 00:00:00 2001 From: junjun666 <35680677+junjun666@users.noreply.github.com> Date: Wed, 26 Apr 2023 15:55:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9taro=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E7=BC=96=E8=AF=91=20(#950)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sites/mobile-taro/config/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sites/mobile-taro/config/index.js b/src/sites/mobile-taro/config/index.js index a8fda35c44..de679bd1c1 100644 --- a/src/sites/mobile-taro/config/index.js +++ b/src/sites/mobile-taro/config/index.js @@ -1,9 +1,11 @@ const path = require('path') let fileStr = `styles/variables.scss` +let themeStr = `styles/theme-default.scss` const projectID = process.env.VITE_APP_PROJECT_ID if (projectID) { fileStr = `styles/variables-${projectID}.scss` + themeStr = `styles/theme-${projectID}.scss` } const config = { @@ -30,7 +32,10 @@ const config = { '@': path.resolve(__dirname, '../../../../src'), }, sass: { - resource: path.resolve(__dirname, '../../../', fileStr), + resource: [ + path.resolve(__dirname, '../../../', fileStr), + path.resolve(__dirname, '../../../', themeStr), + ], }, defineConstants: {}, copy: {