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

React + Redux 部署经验小结

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

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

    Option 2:

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