Expandir la barra de logros de la comunidad.

The first preview of our new Community upgrade is live - check it out now.

Mark Solution

Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.

RESUELTAS

Clientlib || Minification Engine

Avatar

Antiguo miembro de la comunidad

Can GCC be used as a minification engine of CSS?

1 solución aceptada

Avatar

Respuesta correcta de
Employee Advisor
7 Respuestas

Avatar

Community Advisor

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

Antiguo miembro de la comunidad

Thanks rampai.

Avatar

Employee Advisor

Are you running into issues when using YUI for css?

Avatar

Respuesta correcta de
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

Antiguo miembro de la comunidad

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

Antiguo miembro de la comunidad

Hi joerg,

thanks for the reply.

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"