Because the environment requires offline compression of JS and CSS, 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.
I can’t find a particularly good one on github, so I want to ask everyone. I hope Recommended, thank you!
Because the environment requires offline compression of JS and CSS, 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.
I can’t find a particularly good one on github, so I want to ask everyone. I hope Recommended, thank you!
https://gist.github.com/tovic...
Yes, you can search and find it, but most of them are simple pieces of code or not very maintainable.
If the environment requires offline compression, using node is a good solution. After all, it is a mainstream compression solution.
CSS-JS-Booster
https://github.com/Schepp/CSS...
You can directly use webpack or gulp on the front end.
If you find it troublesome, just find an online compression website and go through their compression interface when submitting.