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

fix build not exiting in dev env #1643

Merged

Conversation

gorangajic
Copy link
Contributor

@gorangajic gorangajic commented Jun 30, 2018

When NODE_ENV is set to something else instead of production build was
not exiting. This bug was introduced in 1b6a93f

Closes #1626

When NODE_ENV is set to something else instead of `production` build was
not exiting. This bug was intruduced in
1b6a93f commit
src/cli.js Outdated
@@ -177,6 +177,7 @@ async function bundle(main, command) {
const Bundler = require('../');

if (command.name() === 'build') {
command.watch = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should set command.production = true here actually, which would implicitly disable watching as well. I believe #1600 was meant to keep environment variables as set by the user, not control actual build. That can be done with other command line flags, e.g. if you want to disable minification, use --no-minify.

@mohsen1
Copy link
Contributor

mohsen1 commented Jun 30, 2018

FYI
The hang did happen for me when running parcel build here: #1632

@devongovett devongovett merged commit 14fabe9 into parcel-bundler:master Jul 1, 2018
2zH pushed a commit to 2zH/parcel that referenced this pull request Jul 11, 2018
devongovett pushed a commit that referenced this pull request Oct 15, 2018
devongovett pushed a commit that referenced this pull request Oct 15, 2018
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

Successfully merging this pull request may close these issues.

None yet

4 participants