Skip to content
Permalink
Browse files

fix: clean up the .webpack folder before builds. Fixes #596

  • Loading branch information
MarshallOfSound committed Oct 22, 2018
1 parent 61884d3 commit c64b11ce49583b30de491fe0ef9e8d192cac3909
Showing with 3 additions and 0 deletions.
  1. +3 −0 packages/plugin/webpack/src/WebpackPlugin.ts
@@ -83,6 +83,7 @@ export default class WebpackPlugin extends PluginBase<WebpackPluginConfig> {
case 'prePackage':
this.isProd = true;
return async () => {
await fs.remove(this.baseDir);
await this.compileMain();
await this.compileRenderers();
};
@@ -365,6 +366,8 @@ Your packaged app may be larger than expected if you dont ignore everything othe
if (this.alreadyStarted) return false;
this.alreadyStarted = true;

await fs.remove(this.baseDir);

const logger = new Logger();
this.loggers.push(logger);
await this.compileMain(true, logger);

0 comments on commit c64b11c

Please sign in to comment.
You can’t perform that action at this time.