Merge pull request #826 from embark-framework/feature/clean-pipeline

Clean build dir before starting
This commit is contained in:
Iuri Matias 2018-09-13 19:47:14 -04:00 committed by GitHub
commit 9887a2204d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {