About code compression issues

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.