Closed sthzg closed 9 years ago
This PR makes use of Webpack's DefinePlugin to substitute source code access to process.env.NODE_ENV to the string representation of production, which allows the uglifier to remove non-production code checks and minimizes the build size of app.js.
DefinePlugin
process.env.NODE_ENV
production
This PR makes use of Webpack's
DefinePlugin
to substitute source code access toprocess.env.NODE_ENV
to the string representation ofproduction
, which allows the uglifier to remove non-production code checks and minimizes the build size of app.js.