From 664e70de6c5f4218a37362263ec6bf1917451831 Mon Sep 17 00:00:00 2001 From: QC2168 Date: Fri, 17 Jun 2022 10:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtailwindcss=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index cf7bc279..c8a6fc0f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -52,22 +52,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => { }, }, }, - css: { - postcss: { - plugins: [ - { - postcssPlugin: 'internal:charset-removal', - AtRule: { - charset: (atRule) => { - if (atRule.name === 'charset') { - atRule.remove(); - } - }, - }, - }, - ], - }, - }, + css: { preprocessorOptions: { css: { charset: false } } }, define: { __VUE_I18N_LEGACY_API__: JSON.stringify(false), __VUE_I18N_FULL_INSTALL__: JSON.stringify(false),