NickHopps

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

  •  
  •   NickHopps · May 25, 2018 · 2206 views
    This topic created in 2918 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   ·   1048 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:47 · PVG 02:47 · LAX 11:47 · JFK 14:47
    ♥ Do have faith in what you're doing.