Home  >  Article  >  Backend Development  >  关于代码压缩的有关问题

关于代码压缩的有关问题

WBOY
WBOYOriginal
2016-06-13 11:54:22792browse

关于代码压缩的问题
我想使用网上的工具对js和css进行压缩。
但是之后每次要改代码,不都得:
1.把压缩文件删除
2.把源码文件名改成正式文件的名字
3.改代码
4.把源码文件名改回来
5.去网站上压缩
6.生成压缩文件
7.上传

这么麻烦...而且网站好几个js文件,好几个css文件...
想问有没有什么能简化步骤的办法。

PS:主要是我代码中注释很多,压缩就能省很多流量,也比较安全。
------解决方案--------------------
你自己安装个压缩工具是首选
在线压缩网站也有支持文件打包的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn