diff --git a/packages/plugin/webpack/src/WebpackPlugin.ts b/packages/plugin/webpack/src/WebpackPlugin.ts index 2dceaa327d..5e7598eda4 100644 --- a/packages/plugin/webpack/src/WebpackPlugin.ts +++ b/packages/plugin/webpack/src/WebpackPlugin.ts @@ -154,6 +154,7 @@ export default class WebpackPlugin extends PluginBase { getHooks(): ForgeHookMap { return { prePackage: async (config, platform, arch) => { + this.isProd = true; await fs.remove(this.baseDir); await utils.rebuildHook( this.projectDir,