From 3f0cae7ef17f9b70d6fe57398b397c64875a7b8d Mon Sep 17 00:00:00 2001 From: Matt Wistrand Date: Fri, 7 Jun 2019 13:28:53 -0500 Subject: [PATCH] Do not build legacy/evergreen side-by-side --- src/main.ts | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/main.ts b/src/main.ts index 292f7cb..ecf20a4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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) {