WebPack production environment is NOT the NODE_ENV or BABEL_ENV environment variable

added by JavaScript Kicks
4/15/2019 7:41:13 AM

243 Views

A revelation came to me the other day when I was reviewing some of our bundling processes at Eventbrite. We currently run production bundles like this... node --max_old_space_size=4096\ ./node_modules/.bin/webpack \ --bail \ --config-name node \ --env.production \ --config ./config/webpack.production.config.js Notice the --env.production in there.


0 comments