Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip away arguments used by bnr? #82

Open
shrikeh opened this issue Aug 16, 2018 · 1 comment
Open

Strip away arguments used by bnr? #82

shrikeh opened this issue Aug 16, 2018 · 1 comment

Comments

@shrikeh
Copy link

shrikeh commented Aug 16, 2018

I had an issue with bnr whereby I couldn't work out what was changing when I ran webpack via bnr with a specified .env path compared to when I ran it without. Even copying the .env files across till they were identical, webpack would run differently.

After much debugging, I realised that I was running yarn run webpack -p ${ENV_FILE} which became webpack --register --progress --colours -p [dir]/.env, but -p has a specific meaning to webpack. The problem abated when I moved to using --path as that is not an option used with webpack.

Nevertheless it was not obvious for a while that the bnr option was being passed onto webpack. Should options for bnr be stripped from the final call to the script?

@benoror
Copy link
Owner

benoror commented Aug 16, 2018

do you mind sharing the scripts part of your package.json ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants