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 | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/vite.config.js b/vite.config.js index 95648c4..c44b715 100644 --- a/vite.config.js +++ b/vite.config.js @@ -32,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