简体   繁体   中英

Simple JS minifier on php

I want to minify and possibly compress JavaScript while running a website in dev mode.

The most popular solutions seem to be too comprehensive (Assetic, minify) or based on tools I don't have access to (Assetic: symfony, Uglify.js: nodeJS).

I would like to:

  • Manually pass in paths of several js files
  • Get one compressed, minified js file back that can be written to the filesystem

How can I do this?

Why don't use yuicompressor.jar? Correct compression of the code with high ratio is non-trivial task and it's already done in yuicompressor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM