Skip to content

Commit 663d8e1

Browse files
committed
fix(cli): do not call build before serve
serve calls build. with both of these running, they both setup watches and conflict with each other fixes #917
1 parent 64311a1 commit 663d8e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cli/bin/cli-actions/serve.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
'use strict';
22
const resolveConfig = require('../resolve-config');
3-
const build = require('./build');
43
const servePatterns = require('../serve');
54
const wrapAsync = require('../utils').wrapAsync;
65

76
const serve = options =>
87
wrapAsync(function*() {
98
const config = yield resolveConfig(options.parent.config);
10-
yield build(options);
9+
servePatterns(config, options);
1110
servePatterns(config, options.watch);
1211
});
1312

0 commit comments

Comments
 (0)