Created
May 20, 2014 10:54
-
-
Save simenbrekken/05937e81927802452f48 to your computer and use it in GitHub Desktop.
Global browserify require
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path') | |
var browserify = require('browserify') | |
var glob = require('glob') | |
var bundler = browserify({ | |
entries: ['./src/Application'], | |
extensions: ['.jsx'], | |
paths: glob.sync('src/**/').map(function(directory) { | |
return path.join(__dirname, directory) | |
}) | |
}).transform('reactify') | |
return bundler.bundle({debug: true}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment