From 2c952e5af0fd388a99659565637639a5abd53149 Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期五, 18 三月 2022 14:57:09 +0800 Subject: [PATCH] Merge pull request #8 from sapuser2017/patch-1 --- vite.config.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/vite.config.js b/vite.config.js index cf48bd7..1e171b9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -37,5 +37,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