Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,13 @@ var b = browserify('main.js')

b.transform(envify({
NODE_ENV: 'development'
}))
}), {global: true})
b.bundle().pipe(output)
```

Passing `{global: true}` as second argument is required for browserify to transform
modules included in `node_modules`.

## Purging `process.env` ##

By default, environment variables that are not defined will be left untouched.
Expand Down