Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想优化基于 Chaplin + brunch (coffeescript) 构建的网站的加载时间。我如何打包所有内容,以便浏览器只能看到/加载一个 js 文件?
主要是工作流问题,不知道brunch本身能不能实现,还是应该依赖webpack甚至jspm等外部包。
这样做:config.files.javascripts.joinTo = 'app.js'
config.files.javascripts.joinTo = 'app.js'
http://brunch.io/docs/config#-files-