mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Update dev server ports
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user