thankyourtender
V2EX  ›  问与答

express 如何实现不重启 node 就能看到页面修改的情况?

  •  
  •   thankyourtender · Oct 16, 2014 · 8207 views
    This topic created in 4279 days ago, the information mentioned may be changed or developed.
    express如何实现不重启node就能看到页面修改的情况?  热加载的那种
    6 replies    2014-10-16 22:54:24 +08:00
    pimin
        1
    pimin  
       Oct 16, 2014
    这个问题去cnodejs.org去比较好
    虽然我不懂nodejs,但是我看过这个标题,所以给你抓来了
    https://cnodejs.org/topic/543889cea220049637e41946
    thankyourtender
        2
    thankyourtender  
    OP
       Oct 16, 2014
    我说的不是jade模板文件, 而是内部的js代码
    thankyourtender
        3
    thankyourtender  
    OP
       Oct 16, 2014
    @pimin 这个方法不成熟,express比较难搞
    rentaro
        4
    rentaro  
       Oct 16, 2014
    yimity
        5
    yimity  
       Oct 16, 2014 via Android
    不重启应该不可能,即使用的工具也是自动重启的吧?没用过,瞎说的。
    jybox
        6
    jybox  
       Oct 16, 2014
    只能是检查到文件修改后自动重启了,具体工具见四楼
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   912 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:17 · PVG 04:17 · LAX 13:17 · JFK 16:17
    ♥ Do have faith in what you're doing.