Concatenation and compression

steal.build compresses and concatenates CSS and JavaScript files into a single or several files. It uses the Google Closure compressor by default.

Since it opens the applications in Envjs, it can be run against applications that don't use StealJS.

To make production-ready files of our Todo application, we can run the following command:

$ ./js steal/buildjs todo/todo.html -to todo_prod

We can run the script against a URL:

$ ./js steal/buildjs http://YOUR_SERVER/todo/todo.html -to todo_prod
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.156.93