Clientlib || Minification Engine

Avatar

Avatar

anupamm13392644

Avatar

anupamm13392644

anupamm13392644

31-07-2019

Can GCC be used as a minification engine of CSS?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

996

Correct Reply

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

996

Correct Reply

1.0K
Jörg_Hoh
Employee

31-07-2019

You can use GCC in AEM as well, see the documentation at [1].

[1] Change the minification engine for client libraries in AEM

Answers (6)

Answers (6)

Avatar

Avatar

rampai

Avatar

rampai

rampai

31-07-2019

Hi anupamm13392644​,

GCC is primarily used for JS Minification and not CSS.

As stated in the official documentation:

The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript.

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

01-08-2019

We can investigate why the compression is failing, Please log a daycare ticket with the following info:

1) DEBUG logger for Clientlibs:

  • Go to http://<host>:<port>/system/console/slinglog
  • Click on "add new logger"
  • Set the Log Level to DEBUG
  • Change the log Filename to "clientlibs.log"
  • Add the following class in the "Logger" field:
    com.adobe.granite.ui.clientlibs
    - Click on Save.

2) Share the above logger after you try to rebuild libraries from "http://<host>:<port>/libs/granite/ui/content/dumplibs.rebuild.html"

Avatar

Avatar

anupamm13392644

Avatar

anupamm13392644

anupamm13392644

31-07-2019

Hi joerg,

thanks for the reply.

Avatar

Avatar

anupamm13392644

Avatar

anupamm13392644

anupamm13392644

31-07-2019

Yes. but when i am trying to minimise the same css using online yui compression tool and i am able to minify and also i am facing this issue on publish env. so i guess it rules out a possiiblity of error in code.

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

31-07-2019

Are you running into issues when using YUI for css?

Avatar

Avatar

anupamm13392644

Avatar

anupamm13392644

anupamm13392644

31-07-2019

Thanks rampai.