Heading for the future
摘要: 使用动态import来分割代码 使用动态import来“懒加载”代码,如果你没办法直接减少应用的体积,那么不妨尝试把应用从单个 bundle 拆分成单个 bundle + 多份动态代码的形式。 方法一:使用动态import import("./math").then(math => { consol 阅读全文
posted @ 2020-10-15 09:54 一只菜鸟攻城狮啊 阅读(128) 评论(0) 推荐(0) 编辑