Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 16b963f

Browse files
committed
fix(webpack): run incremental build on watch, not any non-prod build
1 parent 533dcc3 commit 16b963f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webpack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ export function webpackWorker(context: BuildContext, configFile: string): Promis
9898
return writeFilesToDisk(transformedPathFiles)
9999
.then(() => {
100100
Logger.debug('Wrote .js files to disk');
101-
if (context.isProd) {
102-
return runWebpackFullBuild(webpackConfig);
103-
} else {
101+
if (context.isWatch) {
104102
return runWebpackIncrementalBuild(!context.webpackWatch, context, webpackConfig);
103+
} else {
104+
return runWebpackFullBuild(webpackConfig);
105105
}
106106
}).then((stats: any) => {
107107
return webpackBuildComplete(stats, context, webpackConfig);

0 commit comments

Comments
 (0)