From 16e6425b5acec7cdea6aa5f331b48b71f2afc32a Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期五, 31 三月 2023 00:00:00 +0800
Subject: [PATCH] 接口还没连好
---
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