Skip to content
Snippets Groups Projects
Commit 8217d9a8 authored by Clément's avatar Clément
Browse files

bugfix: disable browser-sync tunnel

parent d870d750
No related branches found
No related tags found
No related merge requests found
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,
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment