Skip to content

Commit cf2cda7

Browse files
author
Ken Berkeley
committed
fix browser-sync-webpack-plugin host 127.0.0.1 => localhost, for LAN visitors
1 parent d0ec90b commit cf2cda7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/webpack.dev.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ config.plugins.push(
4646
template: PATHS.SRC.join('index.html')
4747
}),
4848
new BrowserSyncPlugin({
49-
host: '127.0.0.1',
49+
host: 'localhost',
5050
port: PORTS.BROWSER_SYNC,
51-
proxy: 'http://127.0.0.1:' + PORTS.DEV_SERVER,
51+
proxy: 'localhost:' + PORTS.DEV_SERVER,
5252
notify: false
5353
}, {
5454
reload: false

0 commit comments

Comments
 (0)