perf: update

This commit is contained in:
xiaoxian521
2022-04-25 22:42:55 +08:00
parent a7119c1cbe
commit 0a9eb30549
4 changed files with 17 additions and 42 deletions

View File

@@ -39,23 +39,6 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
resolve: {
alias
},
css: {
// https://github.com/vitejs/vite/issues/5833
postcss: {
plugins: [
{
postcssPlugin: "internal:charset-removal",
AtRule: {
charset: atRule => {
if (atRule.name === "charset") {
atRule.remove();
}
}
}
}
]
}
},
// 服务端渲染
server: {
// 是否开启 https