开发环境性能优化
- 优化打包构建速度
-
HMR
- 优化代码调试功能
-
source-map
生产环境性能优化
- 优化打包构建速度
-
oneOf -
缓存( 服务器 ) -
多进程打包 -
externals 禁用一些包参与打包 -
dll 处理第三方库打包
- 优化代码运行性能
-
缓存( hash / chunkhash / contenthash ) -
去除无用代码 tree shaking -
代码分割 -
js的 懒加载、预加载 -
PWA










