0.0.2 • Published 9 years ago

browserify-window v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

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'
        }
    }