Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More details on error messages #1

Closed
JazzTp opened this issue Sep 1, 2015 · 13 comments
Closed

More details on error messages #1

JazzTp opened this issue Sep 1, 2015 · 13 comments

Comments

@JazzTp
Copy link

JazzTp commented Sep 1, 2015

Hi,

I'm trying to optimize my website, www.nicolabernardelli.com, css concat and minify (only the classes actually needed), js concat, html minify. (There's only one js at the moment, apart some inline code in the contact page.)

Optimum seems to be what I was looking for, thanks a lot for sharing it.

Question

What is the correct way to call Optimum to have the entire website optimized with all html files referring to one css file and one js file?

If I call

$ optimum index.html

I only get index.html minified, and styles-head.min.css is created.
If afterwards I run Optimum on another html file, I get that one too minified, and it also references the same styles-ahead.min.css file...

What if the two html files analyzed separately need different css classes?

Should I call Optimum passing all html filenames at once?

optimum `find . -iname "*.html"`

Nope, with this call Optimum only acts on the first encountered argument (find is putting index.html first in the list here, strange, I would have expected to see 404.html first).

Suggestion

I'd like to propose two modifications to the readme.

The first is to add the answer to my question above.

The second is due to the fact that I have been getting erros and it took me a while to understand that, unlike other tools I have been trying out, Optimum is fetching referenced resources through the same interface specified in the html code.

I'd suggest to add to the readme something like this:

Optimum will fetch the involved resources through the interface specified in your html files, e.g. http://yourURL/css/samplefile.css or http://address:port/css/samplefile.css, so be sure that those files are _actually being served_ at that URL or IP address:port, when Optimum runs.

@notheotherben
Copy link
Member

Hi Nicola,

I'm glad Optimum offers (more or less) what you're looking for and that you've found it useful. A quick bit of background which will help explain why some of the functionality you're looking for doesn't currently exist in the codebase.

Optimum was originally designed as a tool to support Single Page Application development with Angular, where you generally end up with a single index.html file which is loaded when the application starts, pulling in all of your JavaScript and CSS in one fell swoop. This is great because it means you only download the resources once, and you should in general only need to make 3 resource requests (index.html, scripts-head.min.js and styles-head.min.css) which can also be cached - further improving page load times.

Where multiple html files are concerned, the issue becomes a little bit more complex as you generally need to combine bundles - something which Optimum doesn't have the ability to handle in its current form. The reason you would want to combine scripts is that it is generally a better idea to leverage client-side caching, or ETags from a performance perspective - so bundling all your resources up front means that people don't need to download the same scripts again each time they visit a different page.

Answer to your Question

This approach will run optimum for each HTML file that find returns, it is going to be slow and won't correctly handle cross-html file bundling

find . -iname "*.html" -exec optimum {} \;

At the moment Optimum doesn't have a means to concatenate bundles, so the last html file's resources will win out - that's not an issue if they all refer to the same CSS and JS files, in which case you can use the command below to run Optimum for each of the files.

Keep in mind that this isn't a particularly optimal solution and will end up running the CSS and JS bundling for each of the files (which will make it slow).

The better approach
Another (better) option would be to extend the way in which Optimum handles multiple files - something which is actually very easy to do given its architecture. Essentially, you simply need to call optimize multiple times as well as ensuring that resources only get written once (otherwise you'd end up with N copies of each resource, where N is the number of HTML files referencing that resource).

I'll quickly take a look at adding the functionality and let you know when there is something available for you to test.

Regarding the README

Sounds like a good idea to me, I'll make sure it is added - if you'd like commit credit then feel free to open a pull request with that addition and I'll merge it in, otherwise happy to do it myself.

@JazzTp
Copy link
Author

JazzTp commented Sep 1, 2015

@spartan563

Hi Benjamin, thank you for replying, and with a nice clear explanation and good news.

I'll be very glad to test if/when you find the time to look into it, that would be great.

As for the readme file, I don't mind the commit credit, thank you, feel free to adapt the suggestion to whatever final form you prefer.

@notheotherben
Copy link
Member

Hi Nicola,

Not a problem at all - I've just published v2.2.0 of Optimum on the NPM repository - it now supports providing multiple html files on the command line and will do its absolute best to combine the JavaScript and CSS files into the global bundles. I've done some rough-and-ready tests of it and everything seems to work as expected, but feel free to let me know if anything breaks for you.

I've also added a rough placeholder in the README explaining the need to make those resources available, if you feel it isn't clear enough please tell me and I'll add some examples there.

@JazzTp
Copy link
Author

JazzTp commented Sep 1, 2015

WOW how fast.

I'm going to install the new Optimum and try.

I was writing this to you before seeing your last message come in:

Actually, nearly all of my pages refer to the same set of resources, except a few (four at the moment) which also involve lightgallery (css and js), because they carry pictures.

Maybe I could treat these few pages separately, replacing manually the multiple referenced resources with what Optimum "packed" for the other pages, and leaving resources related to lightgallery separate from the "pack", thus avoiding that the majority of the pages imply loading lightgallery although they don't need it.

Or... a nice feature might be an eXclude parameter, -x path-to-resource-not-to-be-concatenated-with-others e.g.

optimum <whatever will be the correct way to pass html files> -x css/lightgallery.css -x js/lightgallery.js)

@JazzTp
Copy link
Author

JazzTp commented Sep 1, 2015

As for the readme, that's nice, very precise.

Unlike most other optimization tools, Optimum will attempt to resolve your scripts using whichever protocol is defined in your HTML files - so if you're using relative URLs then Optimum will attempt a filesystem lookup, but if you provide HTTP URLs then Optimum will download the scripts and styles from the provided locations. As a consequence, you need to ensure that those scripts are actually available at the specified location.

Maybe it could be a bit more idiot proof (thinking of myself one hour ago) with something like this:

[no changes before]... then Optimum will download the scripts and styles from the provided locations. You need to ensure that those scripts are actually available at the specified locations. If your HTML files refer to "http://localhost:xxxx/..." then you need to have your local server running at the same time as Optimum (e.g. http-server), or a "connection refused" error will be issued.

@JazzTp
Copy link
Author

JazzTp commented Sep 1, 2015

I have removed the previous version and reinstalled:

[nicola@localhost HUGO]$ npm remove optimum -g
unbuild optimum@2.1.1
[nicola@localhost HUGO]$ npm uninstall optimum -g
npm WARN uninstall not installed in /usr/local/lib/node_modules: "optimum"
[nicola@localhost HUGO]$ npm install optimum -g
/usr/local/bin/optimum -> /usr/local/lib/node_modules/optimum/bin/optimum
optimum@2.2.0 /usr/local/lib/node_modules/optimum
├── sqwish@0.2.2
├── async@1.4.2
├── superagent@1.3.0 (extend@1.2.1, methods@1.0.1, cookiejar@2.0.1, component-emitter@1.1.2, reduce-component@1.0.1, mime@1.3.4, qs@2.3.3, debug@2.2.0, formidable@1.0.14, readable-stream@1.0.27-1, form-data@0.2.0)
├── cheerio@0.19.0 (entities@1.1.1, dom-serializer@0.1.0, css-select@1.0.0, htmlparser2@3.8.3)
├── uglify-js@2.4.24 (uglify-to-browserify@1.0.2, async@0.2.10, yargs@3.5.4, source-map@0.1.34)
├── html-minifier@0.7.2 (relateurl@0.2.6, change-case@2.3.0, concat-stream@1.4.10, clean-css@3.1.9, cli@0.6.6)
├── lodash@3.10.1
└── yargs@3.23.0 (decamelize@1.0.0, camelcase@1.2.1, window-size@0.1.2, y18n@3.1.0, cliui@2.1.0)

Now I'm getting an error, "file or folder not found", calling with one argument or with more than one argument or with no arguments at all (which probably means that the optimum command itself doesn't get resolved, a matter of symlinks here with npm on Linux Fedora 22.3 probably, because auto-completion does work):

[nicola@localhost public]$ optimum index.html 
: No existe el fichero o el directorio

(index.html was not minified of course).

Done uninstall/install again to be sure:

[nicola@localhost public]$ npm uninstall optimum -g
unbuild optimum@2.2.0
[nicola@localhost public]$ npm install optimum -g
/usr/local/bin/optimum -> /usr/local/lib/node_modules/optimum/bin/optimum
optimum@2.2.0 /usr/local/lib/node_modules/optimum
├── sqwish@0.2.2
├── async@1.4.2
├── superagent@1.3.0 (extend@1.2.1, methods@1.0.1, cookiejar@2.0.1, component-emitter@1.1.2, reduce-component@1.0.1, mime@1.3.4, qs@2.3.3, debug@2.2.0, formidable@1.0.14, readable-stream@1.0.27-1, form-data@0.2.0)
├── cheerio@0.19.0 (entities@1.1.1, dom-serializer@0.1.0, css-select@1.0.0, htmlparser2@3.8.3)
├── lodash@3.10.1
├── uglify-js@2.4.24 (uglify-to-browserify@1.0.2, async@0.2.10, yargs@3.5.4, source-map@0.1.34)
├── html-minifier@0.7.2 (relateurl@0.2.6, change-case@2.3.0, concat-stream@1.4.10, clean-css@3.1.9, cli@0.6.6)
└── yargs@3.23.0 (decamelize@1.0.0, camelcase@1.2.1, window-size@0.1.2, y18n@3.1.0, cliui@2.1.0)
[nicola@localhost public]$

Same error.

npm version:

[nicola@localhost public]$ npm version
{ npm: '2.11.3',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.7',
  openssl: '1.0.1p',
  uv: '1.6.1',
  v8: '3.28.71.19',
  zlib: '1.2.8' }
[nicola@localhost public]$

Benjamin, I need to leave the PC for 6-8 hours now. I'll try to check the symlinks mentioned in the install/uninstall messages when I'm back, and I'll let you know :)

Thank you again!

See you later,
Nicola

@notheotherben
Copy link
Member

Hi Nicola,
I've updated the README further to include the example you provided. I've also fixed the error message you were getting, it's just Bash being funny (CRLF line endings break it). If you run npm update -g optimum it should start to function correctly.

As far as the exclusion option goes, it's a rather tricky problem to tackle because of the way JavaScript ordering tends to impose dependencies - simply excluding a file from the bundle can quickly lead to it becoming unusable as a result of missing dependencies, or breaking other scripts in the bundle because it isn't present.

One approach you can use to work around this limitation is to make use of <head> and <body> scripts, which are bundled separately by Optimum anyway. That way you could include your optional scripts in the body and the resulting bundle will only be pulled in on pages which use those body scripts. Not sure if that is the best explanation possible, but let me know if you'd like me to provide some more details on it.

Regards,
Benjamin

@JazzTp
Copy link
Author

JazzTp commented Sep 1, 2015

Hi Benjamin,

Yes it works, great!

I've been making some tests. But first I'm going to mention something I realized soon after quitting the PC last night.

Workflow caveat related with resources location

This might be a further addendum to the readme file:

The fact that Optimum fetches resources from the location specified inside the html files, implies a peculiar workflow when changes made to the website involve css or js files or any other resources which the html files might locate into the absolute destination URL instead of through a relative path.

If you have any such absolute URL locations, you'll have to upload your modified resources to their final destination first, run Optimum which will thus be able to find those resources there, and then upload the optimized website (and possibly remove those unoptimized resources from the destination server).

(This might cause repositories of pages hosted in gitHub grow faster in size, due to git maintaining history. Of course it depends on how frequently the webmaster would change such resources, probably the habitual tasks of most websites after the initial develpment stage involve changing the actual content much more than those resources. Finally, it's probably often possible to replace absolute URLs to the same website with relative paths.)

And/or in the future, when/if you are willing to consider adding this feature, there might be a new parameter specifying pairs, e.g.:

-f http://www.nicolabernardelli.com/ .
or
-f http://www.nicolabernardelli.com/ http://localhost:1313/

meaning: during the optimization process, fetch resources pertaining to the first URL or path from the second one instead (but leave the original URL or path in the optimized ouput file).
The -f flag could be present more than once in the command line, allowing to pass to Optimum a list of pairs, an associative array indexed on the first field, when a resource "path" matches one first element of the array, the associated second element is used instead only to fetch that resource during optimization. The output file will maintain the original location.

Reading output more easily

I get some errors.

Maybe it would be useful to have in output something like "<empty line, then>Opening file sampleFileName.html" (some tools output coloured underlined text for it, but putting an empty line before would be simple and effective).

How I'm launching Optimum, console output, stdout+stderr output.

public/ is where Hugo writes, I run hugo server before for it to produce a website with http://localhost:1313/ instead of http://www.nicolabernardelli.com/, in order to be able to test locally (of course the website to be optimized to be deployed into production would carry the real URL, specified in the hugo config file or on the command line).

Hugo itself is a good server, or I can stop it and use http-server instead (if it runs while hugo is launched, hugo gets another port and refers resources to it, so having http-server serve on the previous one becomes unuseful).

[nicola@localhost public]$ optimum `find . -iname '*.htm*'` &> optimumMultipleResult.txt
[Tue, 01 Sep 2015 14:52:25 GMT] "GET /css/poole.css" "node-superagent/1.3.0"
[Tue, 01 Sep 2015 14:52:25 GMT] "GET /css/hyde.css" "node-superagent/1.3.0"
[Tue, 01 Sep 2015 14:52:25 GMT] "GET /css/poole-overrides.css" "node-superagent/1.3.0"
[Tue, 01 Sep 2015 14:52:25 GMT] "GET /css/hyde-overrides.css" "node-superagent/1.3.0"
[Tue, 01 Sep 2015 14:52:25 GMT] "GET /css/hyde-x.css" "node-superagent/1.3.0"
[Tue, 01 Sep 2015 14:52:26 GMT] "GET /js/lightGallery.js" "node-superagent/1.3.0"
[Tue, 01 Sep 2015 14:52:26 GMT] "GET /css/lightGallery.css" "node-superagent/1.3.0"
[nicola@localhost public]$ 

Content of optimumMultipleResult.txt

FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/404.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/page/1/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/post/acero-inoxidable/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/post/cajon-peruano-unplugged/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/post/infarto/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/acerca/index.html
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/motorizado-por/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/galeria/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/es/contacto/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/a-proposito/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/page/1/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/post/cajon-del-peru-unplugged/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/post/acciaio-inossidabile/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/post/attacco-cardiaco/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/motorizzato-da/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/contatto/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/it/galleria/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/contact/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/about/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/page/1/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/post/heart-attack/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/post/cajon-unplugged/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/post/stainless-steel/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/gallery/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/en/powered-by/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/page/1/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/post/cajon-de-perou-unplugged/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/post/infarctus/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/post/acier-inoxydable/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/motorise-par/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/a-propos/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/pour-me-contacter/index.html
FETCH http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js
FETCH http://localhost:1313/js/lightGallery.js
FETCH http://localhost:1313/css/poole.css
FETCH http://localhost:1313/css/hyde.css
FETCH http://localhost:1313/css/poole-overrides.css
FETCH http://localhost:1313/css/hyde-overrides.css
FETCH http://localhost:1313/css/hyde-x.css
FETCH https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface
FETCH http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css
FETCH http://localhost:1313/css/lightGallery.css
Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined
    at Object.exports.minify (/usr/local/lib/node_modules/optimum/node_modules/uglify-js/tools/node.js:76:14)
    at Object.defaultProcessors.js.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:10:46)
    at ResourceProcessor.minify (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:44:61)
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2874:23
    at arrayMap (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:1406:25)
    at Function.map (/usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:6710:14)
    at ResourceProcessor.combine (/usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:52:11)
    at /usr/local/lib/node_modules/optimum/lib/ResourceProcessor.js:62:22
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:2275:27
    at /usr/local/lib/node_modules/optimum/node_modules/lodash/index.js:3073:15
OPTIMIZED /home/nicola/devweb/HUGO_font-awesome.NOTmin_lightgallery.NOTmin/public/fr/galerie/index.html
Optimization complete

@notheotherben
Copy link
Member

Hi Nicola,

Afraid I don't have the time at the moment to add the 'pairs' functionality you mentioned, I'm also not entirely certain how useful it would be seeing as all remote resource references are removed anyway when the file is bundled and replaced with the relative reference to the bundle itself.

Something that you might need to test though is the relative references generated for html files which are not in the root directory, they might not point to the correct bundle file - if that is the case please let me know and I'll prioritise fixing it.

In the mean time, I've worked on adding some more useful output - it should now be significantly easier to read as a result of a couple of changes to when things are printed, and some colours as well. You'll see this if you update to v2.3.0 from the npm repository.

Regards,
Benjamin

@JazzTp
Copy link
Author

JazzTp commented Sep 2, 2015

Hi Benjamin,

OK, thank you, I'll update and test what happens with the references generated for html files not in the root directory.

As for the pairs, no problem to me.

  • I think I can simply leave the not-minimized resources uploaded, it's only a few small css and js files that wouldn't be pointed to by html files and thus wouldn't be referenced by visitors' browsers, they'd be there ready for Optimum when I need to optimize again after making changes to my website (which would hopefully be permanently in [slow] progress) and regenerating it through Hugo. Deleting and uploading again would probably increase the size of the repository.
  • Another solution might be to trick Optimum through the OS, maybe through /etc/resolv.conf or /etc/hosts, so it would fetch from localhost:1313 instead of my domain name. (If that works, it should even permit to have more than one pair real URL => fetch from here instead during optimization; having more than one is not something I need, but I guess other developers dealing with more complex situations might need it).

On the other hand, I've been searching (pretty much in all my spare time, as always in this period) and I've seen there are tools online which should permit me, before optimizing, to check the syntax of those files and give detailed error messages, I think I need to submit that js file first thing now and see how those tools work.

Best regards!
Nicola

@JazzTp
Copy link
Author

JazzTp commented Sep 2, 2015

Hi Benjamin,

After updating, that "file or folder not found" error appears again (it was solved in the previous update).

@notheotherben
Copy link
Member

Sorry about that, fixed again - the pains of working on Windows systems...

@JazzTp
Copy link
Author

JazzTp commented Sep 3, 2015

Hi Benjamin,

No problem, I updated Optimum soon after your fix and have been full steam on this matter almost the whole day.

References generated by Optimum for html files which are not in the root directory are OK.

In this error message:

Failed to minify undefined
TypeError: Cannot read property 'forEach' of undefined

Maybe "undefined" should be a file name?

I get a lot messages like that.

Well, as for the only JavaScript file I have at the moment, I used JSHint to check and I could very easily fix the only 2-3 warnings/errors I was getting from it (I installed the gedit plugin but these instructions did not work here, this tutorial did).

But I really get a lot of warnings and error messages when checking my website with some online CSS validators, for instance the The W3C CSS Validation Service said Property text-rendering doesn't exist : optimizeLegibility but then I found out on a Mozilla document for developers that it does exist.

Well, I'm not going to dig into those kind of discrepancies now, and I'm not going to revise that whole lot of messages.

For now...

... I ended up using copy&paste online tools I found on this page to minify CSS and JS, which do not perform CSSLint-like or JSLint-like validity/quality control (well this Java file passes JSHint now anyway, which is a JSLint fork I believe).

Then I concatenated (simply with cat) into one file I called bundle.min.css the style sheets in the same order they were referenced from html (except font-awesome, which is still fetched remotely because apparently fetching it into a local resource breaks it).

I don't plan to be changing css/js often, so bundle.min.css and lightgallery.min.js might stay just like that for a while.

After changing my content, I simply call hugo -v, I launch this shell script I called html4production.sh and that's all, content of public/ is ready to deploy.

#!/bin/bash

set -e

cd "public/"
echo "Now in folder `pwd`"

echo
echo Converting eventual CRLF pairs to LF...
find . -iname '*.htm*' -exec dos2unix {} \;

echo
echo Removing empty lines...
find . -iname '*.htm*' -exec sed -i '/^\s*$/d' {} \;

echo
echo Removing leading and trailing spaces on each line...
find . -iname '*.htm*' -exec sed -i -e 's/^[ \t]*//;s/[ \t]*$//' {} \;

echo
echo Finished.

If instead I launch Optimum on this website now, I do still get those errors of course (as I said, I did not fix all those css related problems), but the website works almost entirely fine apparently, except a few things, e.g. the font awesome g+ logo (as foreseeable, because Optimum fetches it into a local resource), the lightgallery javascript, a minor change to the contact page which is probably easily fixable...

Well it's that whole lot of CSS related warnings and errors I got from the W3C CSS Validation Service what made me decide to use those online minifiers which do not perform any deep validity control on the code. If that code works for the browsers, it's OK for me, at least for now. Maybe I'll look for some html-only uglifier/minifier, not urgent anyway.

I'll be glad to test further if you need me to, Benjamin. Congratulations for Optimum which is certainly a great tool. Again, thank you!

Best regards,
Nicola

EDIT: According to Google PageSpeed Insights my website is pretty fine now, for mobiles I have 8 of 10 rules OK, and I could probably fix rather easily the remaining 2 rules, and for desktops I'm OK on 10 of 10 rules, the Hyde-X theme was a good base despite the W3C service CSS related complains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants