Closed pmetras closed 6 years ago
I've added checks that local minifiers are installed or web services are available.
I've added a parameter to js-css-minify.sh because the use can have more than one config file, and besides that, it could happen that the user do not specify the option in its config file, and in this case the project's config file must be used
@pmetras Your work was valuable! thank you very much!
Issue https://github.com/paolobenve/myphotoshare/issues/60
This version changes the
js-css-minify.sh
script to let the user decide which minifiers to use. I've added the new optionsminify_css
andminify_js
in themyphotoshare.conf.defaults
file where the user can select to use the default web services (options valueweb_service
) or the name of a local minifier. For the moment, onlycssmin
,jsmin2
andjsmin3
Python scripts that are available as Debian/Ubuntu packages are supported, but new ones can easily be added in thejs-css-minify.sh
script. The resulting minified files from usingcssmin
andjsmin3
are larger than when using the web services, but the minifying operation takes less time and is less prone to timeouts.