JavaScript-Is there a PHP class that can compress js,css?

Source: Internet
Author: User
Because the environment to compress js,css offline, it is impossible to use the online compression function of the network,
So I want to find a PHP class to compress JS or CSS,
GitHub did not find particularly good, so want to ask everyone, hope to recommend, thank you!

Reply content:

Because the environment to compress js,css offline, it is impossible to use the online compression function of the network,
So I want to find a PHP class to compress JS or CSS,
GitHub did not find particularly good, so want to ask everyone, hope to recommend, thank you!

Https://gist.github.com/tovic ...

Yes, you can search for it, but mostly it's a simple piece of code or not very maintainable.

Using node is a good solution if the environment is to be compressed offline. After all, it is the mainstream compression scheme.

Css-js-booster
Https://github.com/Schepp/CSS ...

The front end can be solved directly with webpack or gulp
If you bother to find an online compressed web site to submit the time from their compression interface over the finished

  • 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.