rnentjes
04/29/2020, 10:31 AMtasks.register<MinifyJsTask>("minifyTop") {
source = fileTree(combineTop.dest)
setDest(file("$buildDir/js/min/app.core.top.min.js"))
closure {
warningLevel = "QUIET"
compilerOptions.languageIn = CompilerOptions.LanguageMode.ECMASCRIPT5
}
}
But it will give errors that indicate that the languageIn setting is not picked up.
For some reference, this is the gradle dsl configuration that works:
minifyJs {
source = jsDev
dest = file("${projectDir}/client/web/js/all.min.js")
closure {
warningLevel = 'QUIET'
compilerOptions.languageIn = "ECMASCRIPT5"
}
}