'admin-21.12.22:优化打包时警告问题'

This commit is contained in:
lyt 2021-12-22 21:37:33 +08:00
parent e2db218ca8
commit 616de6e06b

View File

@ -48,6 +48,22 @@ const viteConfig: UserConfig = {
},
},
},
css: {
postcss: {
plugins: [
{
postcssPlugin: 'internal:charset-removal',
AtRule: {
charset: (atRule) => {
if (atRule.name === 'charset') {
atRule.remove();
}
},
},
},
],
},
},
define: {
__VUE_I18N_LEGACY_API__: JSON.stringify(false),
__VUE_I18N_FULL_INSTALL__: JSON.stringify(false),