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

--node option with using gulp #1557

Closed
rico345100 opened this issue May 10, 2016 · 3 comments
Closed

--node option with using gulp #1557

rico345100 opened this issue May 10, 2016 · 3 comments

Comments

@rico345100
Copy link

how to add --node option when using browserify with gulp? i spent hours and still finding answer. every try i did wasn't work.

like this:
browserify('app.js', { node: true })

if i execute node app with bundled by browserify, it always said:

TypeError: global.XMLHttpRequest is not a function

@terinjokes
Copy link
Contributor

This needs to be documented better, but the --node CLI flag is a wrapper around several of the other options, as can be seen here: https://github.com/substack/node-browserify/blob/071642ad9cbb44cb530d43edfac17c5077a9442c/bin/args.js#L67-L87

@EvanCarroll
Copy link

EvanCarroll commented Jun 2, 2016

This is a bug, I may look at fixing this today. This bug was previously closed for unknown reasons here #1472

@stevus
Copy link

stevus commented Jun 2, 2016

@EvanCarroll awesome - thanks for looking into this.

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

No branches or pull requests

4 participants