From 132ce9b6b6ce47ff3bdef93855d54bb7bd47aa30 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 1 Nov 2022 12:50:44 +0800 Subject: [PATCH] fix(app): darkmode --- packages/webpack-uni-pages-loader/lib/index-new.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/webpack-uni-pages-loader/lib/index-new.js b/packages/webpack-uni-pages-loader/lib/index-new.js index 79b0fabc1d..5ed4d5c418 100644 --- a/packages/webpack-uni-pages-loader/lib/index-new.js +++ b/packages/webpack-uni-pages-loader/lib/index-new.js @@ -178,7 +178,9 @@ module.exports = function (content, map) { } const jsonFiles = require('./platforms/' + process.env.UNI_PLATFORM)( - process.env.UNI_PLATFORM === 'app-plus' ? originalPagesJson : pagesJson, + process.env.UNI_PLATFORM === 'app-plus' && process.env.VUE_APP_DARK_MODE === 'true' + ? originalPagesJson + : pagesJson, manifestJson, isAppView ) -- GitLab