Closed mhart closed 11 years ago
If you use any NODE_ENV besides development or production (eg test), then browserify-middleware crashes with a nasty message: Object.keys called on non-object from here:
NODE_ENV
development
production
test
browserify-middleware
Object.keys called on non-object
https://github.com/ForbesLindesay/browserify-middleware/blob/master/lib/settings.js#L52
I think there should just be default settings, and then these can be overridden by env-specific settings if need be.
A workaround for now is:
if (process.env.NODE_ENV !== 'production') browserify.settings('mode', 'development')
Released as 1.7.0
Awesome - thanks! :+1: :+1: :+1:
:smile:
If you use any
NODE_ENV
besidesdevelopment
orproduction
(egtest
), thenbrowserify-middleware
crashes with a nasty message:Object.keys called on non-object
from here:https://github.com/ForbesLindesay/browserify-middleware/blob/master/lib/settings.js#L52
I think there should just be default settings, and then these can be overridden by env-specific settings if need be.
A workaround for now is: