From ae8d9d380854076d0b2da145576ae08f14a8f835 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期三, 19 三月 2025 17:26:47 +0800 Subject: [PATCH] feat: 添加生态流量页面&做大屏分辨率适配 --- 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