Docz: Run docz without starting the browser

Created on 25 May 2019  路  2Comments  路  Source: doczjs/docz

Question

Description
Is there a way to start docz (e.g. running docz dev) without it automatically opening a browser window?

My usecase is that I'm making an electron app, and because it uses system apis I have to run docz inside an electron environment, otherwise, my components would crash when calling something electron-specific. That said, its pretty annoying in my case that docz dev automatically opens a new browser window, as I always have to close it.

create-react-app provides a way to do that if you set BROWSER=none on a .env file, but this unfortunately doesn't work on docz.

Is there any way to do that?

Most helpful comment

PR: #891

All 2 comments

PR: #891

Seriously or at least actually use our base so you don't open a useless page!

Was this page helpful?
0 / 5 - 0 ratings