plantain
V2EX  ›  问与答

好奇:后端渲染页面时(比如 nodejs 的 ejs),怎么压缩 html(比如去掉不必要的空格、换行)?还有怎么和版本化了的 js/css 文件(比如 index-xxxxxx.js,每次 build 后文件名都会变)配合使用的?

  •  
  •   plantain · Oct 12, 2015 · 1518 views
    This topic created in 3875 days ago, the information mentioned may be changed or developed.
    plantain
        1
    plantain  
    OP
       Oct 12, 2015
    好像可以通过“开发版本 ejs ”->“生产版本 ejs ”的 build 过程做到。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2859 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:52 · PVG 21:52 · LAX 06:52 · JFK 09:52
    ♥ Do have faith in what you're doing.