bugfix: disable browser-sync tunnel
This commit is contained in:
parent
d870d7506a
commit
8217d9a874
@ -1,6 +1,7 @@
|
||||
const port = 9000;
|
||||
const browsersyncPort = 3000;
|
||||
const browserSyncPort = 3000;
|
||||
const distPath = 'www';
|
||||
|
||||
// express server
|
||||
const { join } = require('path');
|
||||
const express = require('express');
|
||||
@ -12,6 +13,7 @@ app
|
||||
rep.sendFile(join(__dirname, distPath, '/index.html')),
|
||||
)
|
||||
.listen(port);
|
||||
|
||||
// browser sync
|
||||
const bs = require('browser-sync').create();
|
||||
bs.init({
|
||||
@ -19,6 +21,6 @@ bs.init({
|
||||
proxy: `http://localhost:${port}`,
|
||||
open: false,
|
||||
notify: false,
|
||||
port: browsersyncPort,
|
||||
tunnel: true,
|
||||
port: browserSyncPort
|
||||
// tunnel: true,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user