Expand my Community achievements bar.

SOLVED

Clientlib || Minification Engine

Avatar

Level 2

Can GCC be used as a minification engine of CSS?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

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

View solution in original post

7 Replies

Avatar

Level 6

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

Employee Advisor

Are you running into issues when using YUI for css?

Avatar

Correct answer by
Employee Advisor

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

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

Avatar

Level 2

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

Employee Advisor

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"