We configured our AEM instance to use these OSGi configurations
com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl.xml
htmllibmanager.minify="{Boolean}true"
htmllibmanager.processor.js="[min:gcc;languageIn=ECMASCRIPT_2015]"
The minify errors and when it encounters
05.04.2019 12:24:41.774 *ERROR* [0:0:0:0:0:0:0:1 [1554481481510] GET /content/xxxx/xxxx/us/en/xxxxxx/home.html HTTP/1.1] com.google.javascript.jscomp /etc/designs/sites/xxxxxxxx/main/script.js:4023: ERROR - Object literal contains illegal duplicate key "background", disallowed in strict mode background: "-moz-linear-gradient(" + oldBrowsers + ")",
Also it errors here
05.04.2019 12:20:12.114 *WARN* [0:0:0:0:0:0:0:1 [1554481211211] GET /content/xxx/xxxxx/us/en/xxxxxx/home.html HTTP/1.1] com.google.javascript.jscomp /etc/designs/sites/xxxx/xxxxx/main/script.js:3349: WARNING - Parse error. String continuations are not recommended. See https://google.github.io/styleguide/javascriptguide.xml?showone=Multiline_string_literals#Multiline_... var modalHTML = '\ ^
We can eliminate these errors if we refactor the code.
Is there a way to configure min:gcc avoid these JavaScript Parsing Errors and still use min:gcc?