V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Gaays
V2EX  ›  Vue.js

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

  •  
  •   Gaays · Nov 11, 2022 · 1686 views
    This topic created in 1271 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   ·   Solana   ·   2573 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 05:06 · PVG 13:06 · LAX 22:06 · JFK 01:06
    ♥ Do have faith in what you're doing.