Skip to content

Commit 172704a

Browse files
authored
Only pack extension for production builds (#5)
1 parent 8dadc89 commit 172704a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

vite.config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ export default defineConfig({
3232
manifest: generateManifest,
3333
disableAutoLaunch: false,
3434
}),
35-
zipPack({
36-
outDir: ".",
37-
outFileName: `dist-${pkg.version}.zip`,
38-
}),
35+
process.env.NODE_ENV === "production" &&
36+
zipPack({
37+
outDir: ".",
38+
outFileName: `dist-${pkg.version}.zip`,
39+
}),
3940
],
4041
});

0 commit comments

Comments
 (0)