From a8dd05927a7ca3b34f7729604744a24375f3549f Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期四, 10 四月 2025 17:28:34 +0800 Subject: [PATCH] fix:修改设备接口 --- vite.config.js | 20 ++++++-------------- 1 files changed, 6 insertions(+), 14 deletions(-) diff --git a/vite.config.js b/vite.config.js index 622c954..b191f63 100644 --- a/vite.config.js +++ b/vite.config.js @@ -39,20 +39,12 @@ }, //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(); - } - } - } - } - ] - } + preprocessorOptions: { + css: { charset: false }, + scss: { + api: 'modern-compiler', + }, + }, } } }) -- Gitblit v1.9.3