{"action":"opened","issue":{"url":"https://api.github.com/repos/hax/hax.github.com/issues/34","labels_url":"https://api.github.com/repos/hax/hax.github.com/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/hax/hax.github.com/issues/34/comments","events_url":"https://api.github.com/repos/hax/hax.github.com/issues/34/events","html_url":"https://github.com/hax/hax.github.com/issues/34","id":124123447,"number":34,"title":"我在D2夜场上对前端工程的预言，兼答“如何评价阮一峰关于前端工具变化快的言论？”","user":{"login":"hax","id":159840,"avatar_url":"https://avatars.githubusercontent.com/u/159840?v=3","gravatar_id":"","url":"https://api.github.com/users/hax","html_url":"https://github.com/hax","followers_url":"https://api.github.com/users/hax/followers","following_url":"https://api.github.com/users/hax/following{/other_user}","gists_url":"https://api.github.com/users/hax/gists{/gist_id}","starred_url":"https://api.github.com/users/hax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hax/subscriptions","organizations_url":"https://api.github.com/users/hax/orgs","repos_url":"https://api.github.com/users/hax/repos","events_url":"https://api.github.com/users/hax/events{/privacy}","received_events_url":"https://api.github.com/users/hax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T20:47:50Z","updated_at":"2015-12-28T20:47:50Z","closed_at":null,"body":"知乎答案链接：https://www.zhihu.com/question/34449620/answer/79028575\r\n\r\n其实本答案并不是对工具变化快的直接评价，而是通过预言来间接给出评价：与我预言的即将发生的变革相比，阮老师所描述的变化是小巫见大巫。\r\n\r\n我的这个预言或者说判断，在2014年年中即已成形，但我一直憋到2015年年底才来回答——因为在一周前D2的夜场上，我在即兴发言中终于憋不住抛出了我的预言：前端的构建部署即将发生革命性的变化——单独的构建环节将逐渐弱化乃至消失，构建所包含的实质性内容即脚本、样式等资源的编译转译等将云化和实时化。两年后（到2018年时），不要说Grunt/Browserify，Gulp/Webpack等也均将退出主流。\r\n\r\n具体来说，我预言明年（2016年）将出现包含JS模块加载、包依赖自动处理、JS自动编译这三项核心功能，并基于HTTP/2的前端资源云服务（可理解为CDN的进化形态）。并且这类服务会在未来两年里快速成长并带动整个前端的大跃进。比如，通过ServiceWorker大幅提升浏览器缓存利用率，加上HTTP/2等协议级优化，Web应用的加载性能将获得划时代的提升；根据UA分发目标平台特定编译版本和自动polyfill，Web应用的浏览器兼容性将获得划时代的提升；提供各种增值服务如方便部署安全特性，安全性监控、灰度部署、包的平稳升级、前端（精确到应用和所依赖的包）的错误监控和分析、前端性能监控和分析等，Web应用的质量将获得划时代的提升，开发效率也将是划时代的提升……由此，前端工程师也会重新把很大一部分精力从构建部署相关的工程问题回归到网站/应用的交互体验本身。（不过应用框架和组件化相关的工程问题届时是否能有比较一致的答案，现在看还很难说。）\r\n\r\n以上就是我的预言，立此存照。\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nBTW，如果2016年9月前我预言的事情还没开始发生，我会亲自动手。 ^_^"}}