webpack 2.2.1
React React-Router Mobx AntDesign
Note:
Because this project using babel-preset-env, and the target is chrome 52, the transformed code will be es6 syntax.
BUT UglifyJsPlugin cannot optimize es6 code. So I changed optimize plugin to babili.
Warning:
open-browser-webpack-plugin v0.0.4 has bug. It cause recompiling stucked. Must ensure the version is locked to v0.0.3 to prevent the problem. baldore/open-browser-webpack-plugin#18
yarn
For development:
npm run dev
For production:
npm run build
Checkout the bundle-analyzer:
npm run build --analyse