Skip to content

Commit

Permalink
fix: restore isProd in the webpack plugin (#3021)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Oct 30, 2022
1 parent d0f9c17 commit 531788b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin/webpack/src/WebpackPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
getHooks(): ForgeHookMap {
return {
prePackage: async (config, platform, arch) => {
this.isProd = true;
await fs.remove(this.baseDir);
await utils.rebuildHook(
this.projectDir,
Expand Down

0 comments on commit 531788b

Please sign in to comment.