From ac03526ea51cb1baae67ab7dd2ee1e085f6a57a4 Mon Sep 17 00:00:00 2001
From: java2sap <39330069+sapuser2017@users.noreply.github.com>
Date: 星期五, 31 十二月 2021 13:33:50 +0800
Subject: [PATCH] Update vite.config.js
---
vite.config.js | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 2d1cddc..c44b715 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -21,6 +21,7 @@
// vite 鐩稿叧閰嶇疆
server: {
port: 80,
+ host: true,
open: true,
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
@@ -31,5 +32,22 @@
}
},
},
+ //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
+ css: {
+ postcss: {
+ plugins: [
+ {
+ postcssPlugin: 'internal:charset-removal',
+ AtRule: {
+ charset: (atRule) => {
+ if (atRule.name === 'charset') {
+ atRule.remove();
+ }
+ }
+ }
+ }
+ ],
+ },
+ },
}
})
--
Gitblit v1.9.3