V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
plantain
V2EX  ›  问与答

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

  •  
  •   plantain · Oct 12, 2015 · 1491 views
    This topic created in 3862 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   ·   2761 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 15:33 · PVG 23:33 · LAX 08:33 · JFK 11:33
    ♥ Do have faith in what you're doing.