From 0cb12e059129d12fd891da5ae654e5fba3fec504 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Thu, 13 Sep 2018 14:07:14 +0100 Subject: [PATCH] Clean build dir before starting --- lib/pipeline/pipeline.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pipeline/pipeline.js b/lib/pipeline/pipeline.js index 53dda9af..87e8d38c 100644 --- a/lib/pipeline/pipeline.js +++ b/lib/pipeline/pipeline.js @@ -16,6 +16,8 @@ class Pipeline { this.webpackConfigName = options.webpackConfigName; this.pipelinePlugins = this.plugins.getPluginsFor('pipeline'); this.isFirstBuild = true; + + fs.removeSync(this.buildDir); } build(abi, contractsJSON, path, callback) {