From 4bd976ccd680e36aed2bac1c3cc22981a0713e66 Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Thu, 16 Nov 2017 22:04:38 -0500 Subject: [PATCH] Only clean on build --- packages/web/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/web/index.js b/packages/web/index.js index 610416e64..777854f61 100644 --- a/packages/web/index.js +++ b/packages/web/index.js @@ -95,9 +95,6 @@ module.exports = (neutrino, opts = {}) => { exclude: [staticDir], babel: options.babel }); - neutrino.use(clean, { - paths: [neutrino.options.output] - }); neutrino.config .target('web') @@ -162,6 +159,7 @@ module.exports = (neutrino, opts = {}) => { .use(optimize.ModuleConcatenationPlugin); }) .when(neutrino.options.command === 'build', (config) => { + neutrino.use(clean, { paths: [neutrino.options.output] }); neutrino.use(copy, { patterns: [{ context: staticDir,