webpack4 webpack4的demo 一份开箱即用的webpack4配置,性能优化,缓存,包括HashedModuleIdsPlugin 来固定module id ,NamedChunkPlugin 来固定chunk id. 使用babel@7 useBuiltIns:usage 按需加载polyfill, 参考: https://segmentfault.com/a/1190000015919928 http://blog.yunfei.me/blog/happypack_webpack_booster.html yesvods/Blog#15 按需加载polyfill——babel7的正确打开方式 JavaScript深入理解Babel原理及其使用