Gaays
V2EX  ›  Vue.js

vue 打包路由懒加载受哪些地方影响?

  •  
  •   Gaays · Nov 11, 2022 · 2087 views
    This topic created in 1438 days ago, the information mentioned may be changed or developed.

    环境:vue2.6+webpack4

    我出现了按照官方教程在 router 中使用 ()=>import('@'/xxx) 的方式,在打包后无法拆出多个 chunk ,全部文件都打包到 static/js/app.js 中了.

    想知道会有哪些地方的配置可能影响了打包拆分的问题,谢谢大家。

    2 replies  •  2022-11-11 11:48:27 +08:00
    shintendo
        1
    shintendo  
       Nov 11, 2022
    之前写的静态 import 没删掉吧,盲猜
    Gaays
        2
    Gaays  
    OP
       Nov 11, 2022
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   921 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:29 · PVG 04:29 · LAX 13:29 · JFK 16:29
    ♥ Do have faith in what you're doing.