Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Disable JS minification only for Author

Avatar

Avatar
Validate 1
Level 3
Mayukh007
Level 3

Likes

15 likes

Total Posts

87 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 3
Mayukh007
Level 3

Likes

15 likes

Total Posts

87 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile
Mayukh007
Level 3

08-03-2021

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..?

View Entire Topic

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

192 likes

Total Posts

165 posts

Correct Reply

54 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

192 likes

Total Posts

165 posts

Correct Reply

54 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

08-03-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