Disable JS minification only for Author | Community
Skip to main content
Level 4
March 8, 2021
Solved

Disable JS minification only for Author

  • March 8, 2021
  • 1 reply
  • 1356 views

HI,

Is there way to disable minification only or Author but not for Publisher.

We installed SP7 and it has issue with component edit and the solution is to disable minification of JS. But we don't want to disable minification in publisher as it will impact performance.

 

The Apache Granite HTML Library Manager property is present in our config "htmllibmanager.minify". So I can not manually disable minification from OSGi as next build will overwrite it as we have it set as "true" in code. I do not see option to mark it as "false" only for author..How can we do that only for author..?

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

Hi @mayukh007 , 

 

It is possible by overlaying the Apache Granite HTML Library config so that config will not be overridden by next deployment and also you can make config specific to author alone. 

So please follow the below steps. 

1.Overlay the config, Apache Granite HTML Library. 

2. Disable the minification flag

3. Add the config to config.author folder. For other environments author, add the config accordingly. So that minification disable will be applicable to author alone

1 reply

Vaibhavi_J
Vaibhavi_JAccepted solution
Level 7
March 8, 2021

Hi @mayukh007 , 

 

It is possible by overlaying the Apache Granite HTML Library config so that config will not be overridden by next deployment and also you can make config specific to author alone. 

So please follow the below steps. 

1.Overlay the config, Apache Granite HTML Library. 

2. Disable the minification flag

3. Add the config to config.author folder. For other environments author, add the config accordingly. So that minification disable will be applicable to author alone

Mayukh007Author
Level 4
March 8, 2021
Thank you Vaibhavi, it works perfectly.