Jigsaw: Local development with valet

Created on 17 Mar 2021  路  3Comments  路  Source: tighten/jigsaw

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.

Most helpful comment

Ah ok, good to know. You can just add :3000 to the end of your URL and it will auto-refresh.

Thanks!

All 3 comments

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!! 馃槀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nathangross picture nathangross  路  3Comments

knorthfield picture knorthfield  路  3Comments

mrgodhani picture mrgodhani  路  8Comments

DRogueRonin picture DRogueRonin  路  8Comments

imaje89 picture imaje89  路  3Comments