Automation of minification / uglify (with "gulp")
Closed this issue · 2 comments
The user who has proposed this issue is prepared to share the code to perform this simplification soon.
The proposed feature will be a significant simplification to the process of minifying Ajaxify's code, when a user wants to derive from it.
Gulp minification
Before you proceed using gulp in terminal, gulp command line interface has to be installed globally with (terminal) commands:
npm install -g gulp
npm install -g gulp-cli
If something goes wrong with installation check this link for npm requirements of gulp.
Next step is opening terminal path to gulp folder (folder with required files is currently only inside my fork of ajaxify repository) that is placed inside repository and typing npm install
. Node package manager will install all required packages that are necessary for minification process. After this process is finished you type gulp
to minify ajaxify any time.
There are some aditional tasks like gulp w
to run watcher that is tracking changes of source file and does minification automatically after saving file, gulp dev
and gulp prod
(commented inside gulpfile.js).
Code inside gulpfile.js is also well commented, so everyone can tweak stuff for its own needs.
This video can be also helpful.
Deferred, as I have no suffer pressure at the moment, because the specified minification process only takes about 10 minutes anyway