This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Hi All,
I am working in AEM6.4.2. There two applications are running on same AEM instances and one of the application is not using minification of Js/Css thats why they have disabled "minify" option on configuration level.
I am using minification version of our css and when I am deploying my application on same instance, I am getting css issue because "minify" option is disabled. If I will enable it then everything's are working fine but first application start breaking.
Please let me know how can I enable "minify" only for my ClientLibs.
I know, we can disabled "minify" for particular ClientLibs by :
jsProcessor String[] default:none, min:none
cssProcessor String[] default:none, min:none
I am looking for vice versa,wants to enable minify for particular ClientLibs. Please suggest.
Thanks
Solved! Go to Solution.
Hi Sunil,
You can try to use the below properties on node as they always have more precedence then OSGI configuration. Just disable the OSGI minification configuration and add the below properties on client lib node
cssProcessor: ["default:none", "min:yui"]
jsProcessor: ["default:none", "min:gcc;compilationLevel=advanced"]
Regards
Sahil garg.
Views
Replies
Total Likes
You can choose to configure the preprocessors configuration per clientlibrary or system-wide.
A preprocessor configuration on the clientlib node takes precedence over the OSGI configuration.
config:= mode ":" processorName options*; mode:= "default" | "min"; processorName := "none" | <name>; options := ";" option; option := name "=" value; |
cssProcessor: ["default:none", "min:yui"] jsProcessor: ["default:none", "min:gcc;compilationLevel=advanced"] |
jsProcessor: [ "default:typescript", "min:typescript", "min:gcc;obfuscate=true" ] |
failOnWarning (defaults to "false") languageIn (defaults to "ECMASCRIPT5") languageOut (defaults to "ECMASCRIPT5") compilationLevel (defaults to "simple") (can be "whitespace", "simple", "advanced") |
For further details on GCC options, see the GCC documentation.
Detailed docs at [1]
[1] https://helpx.adobe.com/ca/experience-manager/6-4/sites/developing/using/clientlibs.html
Views
Replies
Total Likes
Hi Sunil,
You can try to use the below properties on node as they always have more precedence then OSGI configuration. Just disable the OSGI minification configuration and add the below properties on client lib node
cssProcessor: ["default:none", "min:yui"]
jsProcessor: ["default:none", "min:gcc;compilationLevel=advanced"]
Regards
Sahil garg.
Views
Replies
Total Likes
Views
Likes
Replies