browserify-window
v0.0.2
Published
Crazy small package which helps exporting modules in browserify to global scope for debugging.
Downloads
2
Readme
browserify-window
Crazy small package which helps exporting modules in browserify to global scope for debugging.
require('browserify-window').obj = obj;
To hide exported objects in production build all we need to do is add ignore
parameter:
browserify: {
prod: {
options: {
debug: false,
ignore: ['browserify-window'],
},
src: 'src/js/app.js',
dest: 'build/js/app.js'
}
}