Squish It 可以将文件发布到 CDN
我刚刚发现了它,它看起来很有前途,但我需要将我的 js 和 css 脚本上传到我们的 CDN 服务器。我们有 10 台 Web 服务器和一个外部 CDN。
有没有办法将压缩文件上传到 CDN 或者仅在单个服务器上工作。
I just found squish it, it looks very promising but I need to upload my js and css scripts to our CDN servers. We have 10 web servers and an external CDN.
Is there a way to upload the compressed files to a CDN or does it only work on a single server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我最终在构建后事件中使用 Yahoo Yui 压缩机 MsBuildTask 来压缩并组合我们的 javascript 和 css。然后我创建了一个简单的 html 帮助器方法来检测调试和发布模式以编写脚本标记。
I ended up using the Yahoo Yui Compressor MsBuildTask on a post build event to compress and combine our javascript and css. Then I created a simple html helper method to detect debug and release mode to write the script tags.