There was an error while loading. Please reload this page.
1 parent 6f7df78 commit 51705ffCopy full SHA for 51705ff
index.js
@@ -8,16 +8,17 @@ exports.when = api => api.args.has('s') || api.args.has('serve')
8
9
exports.apply = api => {
10
/**
11
- * Disable poi open browser behavior
+ * Prepare arguments for open browser
12
*/
13
- const {
14
- args,
15
- config: { devServer }
16
- } = api
17
- const { host, port } = devServer
+ const { args, config } = api
+ const { host, port } = config.devServer
18
const isUnspecifiedHost = host === '0.0.0.0' || host === '::'
19
const prettyHost = isUnspecifiedHost ? 'localhost' : host
20
- delete devServer.open
+
+ /**
+ * Make poi lose ability to open browser
+ */
21
+ delete config.devServer.open
22
23
console.log()
24
console.log('You can now view your app in the browser:')
0 commit comments