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 port = 9000;
const browsersyncPort = 3000; const browserSyncPort = 3000;
const distPath = 'www'; const distPath = 'www';
// express server // express server
const { join } = require('path'); const { join } = require('path');
const express = require('express'); const express = require('express');
...@@ -12,6 +13,7 @@ app ...@@ -12,6 +13,7 @@ app
rep.sendFile(join(__dirname, distPath, '/index.html')), rep.sendFile(join(__dirname, distPath, '/index.html')),
) )
.listen(port); .listen(port);
// browser sync // browser sync
const bs = require('browser-sync').create(); const bs = require('browser-sync').create();
bs.init({ bs.init({
...@@ -19,6 +21,6 @@ bs.init({ ...@@ -19,6 +21,6 @@ bs.init({
proxy: `http://localhost:${port}`, proxy: `http://localhost:${port}`,
open: false, open: false,
notify: false, notify: false,
port: browsersyncPort, port: browserSyncPort
tunnel: true, // 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