A tool to combine multiple javascript files into one ...

Is there a tool that can combine multiple javascript files into one and then compress them?

+3
source share
5 answers

For PHP try Minify: http://code.google.com/p/minify/

From the docs:

Minify is a PHP5 application that helps you follow a few of Yahoo! Rules for High Performance Websites.

It combines several CSS or Javascript files, removes unnecessary spaces and comments, and serves them using gzip coding and optimal client side cache headers.

+1
source

, - , js.sh . , JS , , CSS. :

  • JS , script_order.txt
  • Google Closure
  • JS 25 , , iPhone - , 25kb
  • PHP <script>,
  • : js.sh -u yourname

, , , .

+1

, , . . : " https://bitbucket.org/ardee_aram/jscombiner/

What sets it apart is that it keeps track of your javascript files for changes and merges them when such a change occurs. Then it frees you from “creating” your javascript every time you want to view it in your browser. It has no compression, but I see that the Google Closure Compiler has a JAR file, so I can integrate it when I have time.

Hope this helps you too :)

0
source

Source: https://habr.com/ru/post/1791000/


All Articles