From 96f548cbddff2a3cae98382f89e55af247089f55 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期四, 30 三月 2023 18:30:35 +0800 Subject: [PATCH] 3.30日提交 --- ruoyi-ui/vue.config.js | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 5537a41..767a3eb 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -47,8 +47,15 @@ }, css: { loaderOptions: { - sass: { - sassOptions: { outputStyle: "expanded" } + // sass: { + // sassOptions: { outputStyle: "expanded" } + // } + postcss:{ + plugins:[ + require('postcss-px2rem')({ + remUnit:192 + }) + ] } } }, @@ -90,6 +97,17 @@ symbolId: 'icon-[name]' }) .end() + // + // config.module + // .rule("css") + // .test(/\.css$/) + // .oneOf("vue") + // .resourceQuery(/\?vue/) + // .use("px2rem") + // .loader("px2rem-loader") + // .options({ + // remUnit: 192 // 璁捐绋垮ぇ灏忔瘮渚� / 10 + // }); config .when(process.env.NODE_ENV !== 'development', @@ -134,4 +152,5 @@ } ) } + } -- Gitblit v1.9.1