Pas2js minifier

This is an old revision of Pas2js minifier, edited by Mattias2 at . The current revision is 130715.

/* Linux/MacOS */

Overview

This page explains ways to reduce and/or compress the pas2js generated JavaScript.

Omit unneeded code

Third party minifier

There are several free minifiers for JavaScript. A minifier removes unneeded characters and replaces some code without changing its functionality.

As an example here is how to use uglifyjs with pas2js:

Windows

npm install uglify-js -g

and press <enter> This will download and install uglifyjs as a command line app. Test it by typing

uglifyjs -h

This should give the list of uglifyjs options.

Linux/MacOS

sudo npm install uglify-js -g

This will download and install uglifyjs as a command line app. Test it by typing

uglifyjs -h

This should give the list of uglifyjs options.