I want to use the tools on the Internet to compress JS and CSS.
But then every time you change the code, you don't have to:
1. Delete the compressed file
2. Change the source filename to the name of the official file
3. Change the Code
4. Change the source file name back
5. Go to the website to compress
6. Generate Compressed Files
7. Upload
So troublesome ... And the site several JS files, several CSS files ...
Want to ask if there is any way to simplify the steps.
PS: Mainly I code in a lot of comments, compression can save a lot of traffic, but also more secure.
Reply to discussion (solution)
Your own installation of a compression tool is preferred
Online compression web site also has supporting file packaging
You reminded me.
Just install a code compression tool
Using a batch-like method in the background to automatically turn all xxx.js into Xxx_min.js functions
And then according to the configuration is the formal environment to read xxx_min.js, debug environment Read Xxx.js
This will not bother to change the file name, and do not have to compress (online is really a pit)
Just do it.