Closed minicuper closed 10 years ago
There is an error in the last code example:
var browserify = require('browserify') , envify = require('envify/custom') , fs = require('fs') var bundle = browserify('main.js') , output = fs.createWriteStream('bundle.js') b.transform(envify({ NODE_ENV: 'development' })) b.bundle().pipe(output)
You should use b insead of bundle variable.
Thanks!
There is an error in the last code example:
You should use b insead of bundle variable.