修复tailwindcss无法正常工作

This commit is contained in:
QC2168 2022-06-17 10:32:20 +08:00
parent 4259e9931f
commit 664e70de6c

View File

@ -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),