简体   繁体   English

在服务器端将样式表和javascript文件合并为1

[英]Merging stylesheets and javascript files into 1 on the server side

I like to have seperate javascript files and css files in my web projects. 我喜欢在我的Web项目中使用单独的javascript文件和css文件。 Each pages has its own javascript and css file for the sake of clarity on my behalf. 为了我的清晰起见,每个页面都有自己的javascript和css文件。

In my latest project I ended up having 10 seperate stylesheets and 9 javascript files and that slows down my application. 在我的最新项目中,我最终得到10个单独的样式表和9个javascript文件,这减慢了我的应用程序的速度。

My question: whats the fastest way of merging all stylesheets into 1 file and all javascripts into one file on the server side? 我的问题:在服务器端将所有样式表合并为1个文件并将所有JavaScript合并为一个文件的最快方法是什么? In the end the browser should see it as 1 file but I like to keep my files seperate on the back end. 最后,浏览器应将其视为1个文件,但我想将文件分开放在后端。

Thanks! 谢谢!

这是我过去使用的:http: //yuicompressor.codeplex.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM