Skip to content

The only downloader you need. 下载器的集大成者。

chore(Browser Extension): 关掉不适用的 chunk 体积警告

XiaoYouChR8d8497495a8b
diff --git a/browser_extension/app/vite.config.ts b/browser_extension/app/vite.config.ts
index d5aee8d7..e4da8cbf 100644
--- a/browser_extension/app/vite.config.ts
+++ b/browser_extension/app/vite.config.ts
@@ -18,6 +18,8 @@ export default defineConfig({
emptyOutDir: true,
target: buildTarget,
cssCodeSplit: false,
+ // Extension assets load from the local package, so the web-oriented 500 kB warning doesn't apply.
+ chunkSizeWarningLimit: 700,
rolldownOptions: {
input: {
popup: path.resolve(__dirname, "popup.html"),