Skip to content

Commit

Permalink
Only clean on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Kelty committed Nov 17, 2017
1 parent f0ca2d8 commit 4bd976c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ module.exports = (neutrino, opts = {}) => {
exclude: [staticDir],
babel: options.babel
});
neutrino.use(clean, {
paths: [neutrino.options.output]
});

neutrino.config
.target('web')
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4bd976c

Please sign in to comment.