Hyper: CLI: Use dev config file

Created on 27 Mar 2018  路  4Comments  路  Source: vercel/hyper

When Hyper is in dev mode, local config file has precedence: https://github.com/zeit/hyper/blob/e181e1eb8d5b3044a99a1add728c5bca8b5a14c3/app/config/paths.js#L18-L29

It permits to develop on Hyper without breaking regular one.

It would be great to do something similar for CLI here: https://github.com/zeit/hyper/blob/e181e1eb8d5b3044a99a1add728c5bca8b5a14c3/cli/api.js#L8

Not conditioned to electron-is-dev, but maybe to process.env.NODE_ENV value or something like that.

good first issue help wanted 鈱笍 CLI tool Enhancement

Most helpful comment

i'd like to have a go at this 馃檹

All 4 comments

It would make other PRs, like #2756, easier to develop.

i'd like to have a go at this 馃檹

Opened PR #2792 to address this 馃槉

Fixed by #2792

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ConstantinChirila picture ConstantinChirila  路  3Comments

yvan-sraka picture yvan-sraka  路  3Comments

daenuprobst picture daenuprobst  路  3Comments

laur1s picture laur1s  路  3Comments

anthonyettinger picture anthonyettinger  路  3Comments