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

关于前端项目构建的一点问题

  •  
  •   NickHopps · May 25, 2018 · 2164 views
    This topic created in 2902 days ago, the information mentioned may be changed or developed.

    一直以来都是先引入 jquery、bootstrap ……然后再分别引入其他部分,js 也好,css 也好,都是这样。这种情况下单个文件体积小,只是需要多的 http 请求

    不过在单页应用构建的时直接用 webpack 把 jquery 等等模块全部打包成一个 app.js 。这种情况下单个文件体积大,但是只需要很少的 http 请求

    那么构建一个多页面多组件的项目,是分开加载好呢,还是打包加载好?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 03:37 · PVG 11:37 · LAX 20:37 · JFK 23:37
    ♥ Do have faith in what you're doing.