paolobenve / myphotoshare

MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
15 stars 0 forks source link

Social, system-wide JavaScript packages and support for uglify-js #82

Closed pmetras closed 6 years ago

pmetras commented 6 years ago

This pull request contains various changes:

paolobenve commented 6 years ago

good work! congratulations!

paolobenve commented 6 years ago

something is wrong, although libjs-jquery package is installed on ubuntu xenial

jquery error

paolobenve commented 6 years ago

it seems that is because the server must have a /javascript definition, perhaps the docs might say it

pmetras commented 6 years ago

That's strange because when a JavaScript library is installed on Ubuntu/Debian, a virtual directory /javascript is defined on the web server... I don't know how to test for the existence of that virtual directory. I'm testing the presence of the libraries on the file system. Perhaps a test with wget or curl in js-css-minify.css and with PHP functions in index.php? Like I said, I'm not 100% sure this patch is a good idea...