摘要: import()异步加载模块 在webpack中, 调用import()函数可以将依赖模块进行切割, 打包为非入口点文件, 这是通过Promise+ajax完成的. 请求路径是相对路径, 对于单页应用来说没有问题. 非入口点文件的命名由webpack.config.output.chunkFilen 阅读全文
posted @ 2020-09-21 16:00 develon 阅读(9248) 评论(0) 推荐(0) 编辑