Skip to content

Commit 5affcbf

Browse files
committed
fix: update build tools so webpack's watch task is automatically run if webpackDevServer isn't enabled in the .boltrc config
1 parent 78c69b3 commit 5affcbf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/build-tools/tasks/task-collections.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,12 @@ async function watch() {
158158
config = config || await getConfig();
159159

160160
try {
161-
const watchTasks = [
162-
];
161+
const watchTasks = [];
162+
163+
// if webpackDevServer isn't defined or is disabled, use webpack watch mode instead
164+
if (!config.webpackDevServer) {
165+
watchTasks.push(webpackTasks.watch());
166+
}
163167

164168
switch (config.env) {
165169
case 'pl':

0 commit comments

Comments
 (0)