vite.config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
vite.config.js
@@ -32,5 +32,22 @@ } }, }, //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(); } } } } ], }, }, } })