Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ljxi committed Mar 31, 2024
1 parent f6a62b9 commit 72e513b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export default defineConfig({
],
}),
// cssInjectedByJsPlugin(), // css注入插件 会导致字体路径异常
// legacyPlugin({
// targets:['chrome 52'], // 需要兼容的目标列表,可以设置多个
// additionalLegacyPolyfills:['regenerator-runtime/runtime'] // 面向IE11时需要此插件
// }),
legacyPlugin({
targets:['chrome 52'], // 需要兼容的目标列表,可以设置多个
additionalLegacyPolyfills:['regenerator-runtime/runtime'] // 面向IE11时需要此插件
}),
visualizer({
gzipSize: true,
brotliSize: true,
Expand Down

0 comments on commit 72e513b

Please sign in to comment.