Is there a way to modify the npm script to better work with my valet setup? Whenever I run npm run watch it will open a browser window to localhost:3000. Not a big deal, but it would be nice if it would open to my-project.test or whatever I have set in my local config.php.
I've looked into this extensively and as far as I know it isn't possible, no. You can disable the auto-opening by setting BrowserSync's open config option to false, but you'll need to manually open my-project.test (and it won't auto-refresh).
Ah ok, good to know. You can just add :3000 to the end of your URL and it will auto-refresh.
Thanks!
@nathangross this blew my mind I had absolutely no idea you could do that................... amazing!
I re-read the Browsersync docs and I don't think there's a way to automatically open a custom URL unfortunately.
Thanks for using Jigsaw!! 馃槀
Most helpful comment
Ah ok, good to know. You can just add
:3000to the end of your URL and it will auto-refresh.Thanks!