Skip to main content

有哪些代码分离的方法

  • 入口起点:使用 entry 配置手动地分离代码
  • 公共代码:使用 CommonsChunkPlugin 提取公共代码
  • 动态导入:代码中通过懒加载 import().then 分离代码。