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

The process does not end after the completion of the custom environment variable packaging. #1626

Closed
zhayes opened this issue Jun 27, 2018 · 1 comment
Labels

Comments

@zhayes
Copy link

zhayes commented Jun 27, 2018

image
The environment variable is configured to define the interface address

let baseUrl = 'http://test-xxx.com';

if(process.env.NODE_ENV === 'production') baseUrl = 'http://xxx.com';

But after packaging , the process does not end;

Although my environment variable is not production, my command is build, so should end the process.

My project was deployed online through shell scripts, but your process was not closed, and I could not tell if the packaging was finished.

Hope to solve it quickly.

@jkappers
Copy link

jkappers commented Jun 27, 2018

Same issue here using yarn 1.7.0. Just upgraded to parcel 1.9.3.

"scripts": {
  "build": "parcel build index.html --no-cache --public-url=/"
}

Running yarn build works as expected.
Running NODE_ENV=qa yarn build builds, but the process hangs.

Edit: Added version numbers.

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

No branches or pull requests

3 participants