Update dev server ports

This commit is contained in:
Cory LaViska
2020-07-07 11:19:29 -04:00
parent 0c26116e2a
commit ae268dc399
2 changed files with 4 additions and 3 deletions

View File

@@ -22,14 +22,15 @@ const path = require('path');
const { createProxyMiddleware } = require('http-proxy-middleware');
const app = express();
const proxyPort = 3000;
const browserPort = 4000;
const stencilPort = 4001;
const proxyPort = 4002;
// Proxy Stencil's dev server
app.use(
'/~dev-server',
createProxyMiddleware({
target: 'http://localhost:3333',
target: `http://localhost:${stencilPort}`,
changeOrigin: true,
ws: true
})

View File

@@ -16,7 +16,7 @@
],
"scripts": {
"build": "stencil build --docs",
"dev": "stencil build --dev --docs --watch --serve --port 3333 --no-open",
"dev": "stencil build --dev --docs --watch --serve --port 4001 --no-open",
"lint": "eslint src/**/*{.ts,.tsx}",
"make-dist": "node make-dist.js",
"make-icons": "node make-icons.js",