Added minified version.

This commit is contained in:
2019-03-22 13:48:42 +01:00
parent d1efeeffa6
commit b164de08a5
5 changed files with 3583 additions and 6 deletions
+28 -3
View File
@@ -1,8 +1,33 @@
# iwmlib
## Install
Install the following dependencies globally
`npm i rollup gulp-cli -g`
and some dependencies locally
`npm i`
Be sure that Python 3 is installed on your system (for building the 3rd party library).
## Build
Be sure that Python 3 is installed (for building the 3rd party library) and that you have installed Rollupjs globally `npm i rollup -g`.
To build the two iwmlib files type
`npm run build`
The files will be generated in the dist folder (iwmlib.js and iwmlib.pixi.js). If you want to watch the files for a continuously build type
`npm run watch`
To build the 3rd party library type
`npm run 3rdparty`
To create the minified version of the 3rd party library type
`npm run minify`
To build the two iwmlib files type `npm run build`. The files will be generated in the dist folder (iwmlib.js and iwmlib.pixi.js). If you want to watch the files for a continuously build type `npm run watch`.
To build the 3rd party library type `npm run 3rdparty`. The file will be generated in the dist folder (iwmlib.3rdparty.js).