Sp-dev-docs: `gulp serve` always opens a new tab in browser

Created on 11 Sep 2016  路  4Comments  路  Source: SharePoint/sp-dev-docs

Category

[ ] Question
[ ] Typo
[x] Bug
[x] Enhancement / Suggestion
[ ] Additional article idea

Expected or Desired Behavior

When gulp serve will be executed no new browser tab should be open when there is already a browser tab that contains the workbench. Please make sure that only on instance of that windows runs.

Observed Behavior

When ever gulp serve will be exectued a new browser tab open even if workbench is already launched in another tab.

tooling discussion

Most helpful comment

To prevent gulp serve from opening a new browser instance, you should run gulp serve --nobrowser.

All 4 comments

To prevent gulp serve from opening a new browser instance, you should run gulp serve --nobrowser.

@iclanton This doesn't solve the problem neither is it a workaround. If those window issues cannot be handled by gulp-connect it might be better to have --no-browser as default open and --browser as optional.

Most yeoman generators I've seen supports to open in the same browser window once gulp serve or similar task have been restarted. The mostly use more advanced development web server.

Hey Stefan - at this point we're going to lean towards making it easy for devs less familiar with the client type tools. If you feel strongly, let us know. Perhaps we can make it easy for you to specify options for your scenario (ie, you state that for your project, gulp server has --no-browser as a default param.

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonthenerd picture jonthenerd  路  3Comments

byrongits picture byrongits  路  3Comments

mikeparkie picture mikeparkie  路  3Comments

patrick-rodgers picture patrick-rodgers  路  3Comments

zerovectorspace picture zerovectorspace  路  3Comments