What JavaScript minifier do you recommend?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
JavaScript Minifier gives a good API you can use programatically:
Or by uploading a file and redirecting to a new file:
Hope that helps.
Pretty Diff - http://prettydiff.com/?m=minify
If you are using PHP you might also want to take a look at minify which can minify and combine JavaScript files. The integration is pretty easy and can be done by defined groups of files or an easy query string. Minified files are also cached to reduce the server load and you can add expire headers through minify.