Navigation Menu

Skip to content

Commit

Permalink
Do not build legacy/evergreen side-by-side
Browse files Browse the repository at this point in the history
  • Loading branch information
mwistrand committed Jun 7, 2019
1 parent 98009cd commit 3f0cae7
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/main.ts
Expand Up @@ -230,26 +230,11 @@ const command: Command = {
});
let configs: webpack.Configuration[];
if (args.mode === 'dev') {
configs =
args.target === 'lib'
? [
devConfigFactory({ ...rc, ...commandLineArgs, elements, clean: true }),
devConfigFactory({
...rc,
...commandLineArgs,
legacy: true,
elements,
clean: false
})
]
: [devConfigFactory({ ...rc, ...commandLineArgs, elements })];
configs = [devConfigFactory({ ...rc, ...commandLineArgs, elements })];
} else if (args.mode === 'test') {
configs = [testConfigFactory({ ...rc, ...commandLineArgs, elements, legacy: true })];
} else {
configs =
args.target === 'lib'
? [distConfigFactory({ ...rc, ...commandLineArgs, elements, clean: true })]
: [distConfigFactory({ ...rc, ...commandLineArgs, elements })];
configs = [distConfigFactory({ ...rc, ...commandLineArgs, elements })];
}

if (configs.length === 0) {
Expand Down

0 comments on commit 3f0cae7

Please sign in to comment.