minifying JS and CSS in 6.2 causing errors | Community
Skip to main content
jackie_chan_
New Participant
May 23, 2017
Solved

minifying JS and CSS in 6.2 causing errors

  • May 23, 2017
  • 11 replies
  • 13948 views

Hi folks,

Hoping someone can help me with this task.  As you can see by the title, I'm trying to minify the JS for our site and all of it's associated components in AEM 6.2.

We are using angular 1.5.5 across the site and components, and when I go to the AEM Web Console Configuration > Adobe Granite HTML Library Manager and check the Minify option, when we hit the site, I'm seeing issues in my JS console:

Could someone point me in the right direction of how to minify the site.js that's generated?

Thanks!

Jackie

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

11 replies

antoniom5495929
New Participant
May 23, 2017

Hi,

it seems that minify is not able to minify your site clientlib. When the algorithm used by AEM (yui compressor) is not able to minify a javascript inside your clientlib the clientlib.min is not created so you get a 404.

You need to test your javascript with the following link [0] in order to find the rule that doesn't allow yui compressor to create you minified clientlib.

[0] http://99webtools.com/yui-compressor.php#output

Let us know.