Skip to content

Commit 531788b

Browse files
fix: restore isProd in the webpack plugin (#3021)
1 parent d0f9c17 commit 531788b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/plugin/webpack/src/WebpackPlugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
154154
getHooks(): ForgeHookMap {
155155
return {
156156
prePackage: async (config, platform, arch) => {
157+
this.isProd = true;
157158
await fs.remove(this.baseDir);
158159
await utils.rebuildHook(
159160
this.projectDir,

0 commit comments

Comments
 (0)