• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hustlzp
V2EX  ›  程序员

React + Redux 部署经验小结

  •  
  •   hustlzp · Mar 9, 2016 · 5534 views
    This topic created in 3730 days ago, the information mentioned may be changed or developed.
    14 replies    2016-03-09 18:15:25 +08:00
    sokis
        1
    sokis  
       Mar 9, 2016
    已阅
    paulagent
        2
    paulagent  
       Mar 9, 2016
    thanks
    sox
        3
    sox  
       Mar 9, 2016
    Long term caching 并不麻烦啊, filename: "output.[hash].bundle.js" 就完了
    crazyxin1988
        4
    crazyxin1988  
       Mar 9, 2016
    webpack 支持 chunkhash
    feilaoda
        5
    feilaoda  
       Mar 9, 2016
    很好,对我这前端渣有帮助
    moxiaonai
        6
    moxiaonai  
       Mar 9, 2016
    支持,赞一个
    hustlzp
        7
    hustlzp  
    OP
       Mar 9, 2016
    @sox 请问下如何自动将 output.[hash].bundle.js 填到 HTML 中?这个我还没搞太清楚。
    sox
        8
    sox  
       Mar 9, 2016   ❤️ 1
    Option 1:

    https://github.com/sporto/assets-webpack-plugin 会生成一个包含这些 hash 的 json 文件

    Option 2:

    https://github.com/ampedandwired/html-webpack-plugin 会可以生成一个包含 <script> <link> 的 html
    hustlzp
        9
    hustlzp  
    OP
       Mar 9, 2016
    @sox Thanks!
    saturnast
        10
    saturnast  
       Mar 9, 2016
    HUST...
    hkongm
        11
    hkongm  
       Mar 9, 2016
    为了 @sox 的回复,收藏 topic
    hustlzp
        12
    hustlzp  
    OP
       Mar 9, 2016
    @sox 博客挺不错的~
    hustlzp
        13
    hustlzp  
    OP
       Mar 9, 2016
    sox
        14
    sox  
       Mar 9, 2016
    @hustlzp 👍😄
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4320 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 04:10 · PVG 12:10 · LAX 21:10 · JFK 00:10
    ♥ Do have faith in what you're doing.