It doesn't seem to support JS classes neither
# questions
p
It doesn't seem to support JS classes neither
j
If the JS is already minified, you can skip minification with
minifyJs = false
or configure
excludes
for the files that are already minified individually
Copy code
assets {
    minifyJs = false  // Some js files were not compatible and are already minified anyway

    minifyOptions = [
            optimizationLevel: "SIMPLE", // SIMPLE (default) or ADVANCED or WHITESPACE_ONLY
    ]

    //excludes = ["**/*.less", "**/*.sass"] // excluded from build
}
That's the way I have handled this in the past.
in
build.gradle
p
yes I have excluded the one that has the ? operator, but for the one that has classes, it's not minified and it seems classes are not supported either
I've also seen many releases of the plugin after the version used by Grails 5.3 but I'm not sure if I can just update the dependency (not sure what compatibility it has with my version of Grails)
j
OK, I think your quick path is the exclude that one, even though it is not minified. And if you have time create an issue on https://github.com/wondrify/asset-pipeline with the details.
p
note the last release is 5.0.9 and Grails 5.3 uses 3.4.7 asset-pipeline, so I'm not sure if these issues were already fixed in newer versions, but also don't know if I update to 5.0.9 in my Grails 5.3 would break something
I've seen #371 but is not the same, the issue is not that the file is already minimized, is that it uses the ? operator
in this line
callback?.call(label, e);