stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

BrowserSync config is not editable

Open gmonarque opened this issue 3 years ago • 2 comments

Expected behavior

I need to be able to configure browsersync port

Actual behavior

I can't do that

Steps to reproduce behavior

stencil start

Environment

Gitpod. Basically, here is what happens: http://localhost:3000 -> Accessed at https://3000-dev-env.local http://localhost:3001 -> Accessed at https://3001-dev-env.local http://localhost:3002 -> Accessed at https://3002-dev-env.local

I need to configure BrowserSync to match my env, is it possible to do that? BrowserSync tries to find the frontend preview at: https://3002-dev-env.local:3000/browser-sync/socket.io/?EIO=4&transport=polling&t=O2wpXFT

When it's actually at: https://3000-dev-env.local/browser-sync/socket.io/?EIO=4&transport=polling&t=O2wpXFT

I hope I explained clearly my problem.

Thanks!

Stencil-cli version stencil --version: 3.5.1 Node version node -v: v12.22.12 NPM version npm -v: 6.14.16 OS: Ubuntu 20.04.4 LTS (docker)

gmonarque avatar May 13 '22 00:05 gmonarque

Would also be nice if you could turn it off! I'd prefer to use HMR in webpack

steve-ross avatar Aug 24 '22 12:08 steve-ross

FYI, this took me forever to figure out. Finally through editing my local version of stencil-run I was able to see that the server is really running on port 3001. So if you want to run stuff like lighthouse etc locally w/o browser sync. Just goto http://localhost:3001

steve-ross avatar Nov 10 '22 02:11 steve-ross