'admin-21.12.22:优化打包时警告问题'
This commit is contained in:
parent
c1b4cf75ee
commit
5a50d3c681
|
|
@ -44,6 +44,22 @@ const viteConfig: UserConfig = {
|
|||
},
|
||||
},
|
||||
},
|
||||
css: {
|
||||
postcss: {
|
||||
plugins: [
|
||||
{
|
||||
postcssPlugin: 'internal:charset-removal',
|
||||
AtRule: {
|
||||
charset: (atRule) => {
|
||||
if (atRule.name === 'charset') {
|
||||
atRule.remove();
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default viteConfig;
|
||||
|
|
|
|||
Loading…
Reference in New Issue