Clean build dir before starting

This commit is contained in:
Anthony Laibe 2018-09-13 14:07:14 +01:00
parent 323ec0d529
commit 0cb12e0591
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ class Pipeline {
this.webpackConfigName = options.webpackConfigName; this.webpackConfigName = options.webpackConfigName;
this.pipelinePlugins = this.plugins.getPluginsFor('pipeline'); this.pipelinePlugins = this.plugins.getPluginsFor('pipeline');
this.isFirstBuild = true; this.isFirstBuild = true;
fs.removeSync(this.buildDir);
} }
build(abi, contractsJSON, path, callback) { build(abi, contractsJSON, path, callback) {