mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-31 12:24:10 -08:00
gradle: set default JS optimization to BALANCED
This commit is contained in:
parent
e9d206eed0
commit
df40dedba3
|
@ -66,7 +66,7 @@ class TeaVMExtensionImpl extends TeaVMBaseExtensionImpl implements TeaVMExtensio
|
||||||
js.getTargetFileName().convention(project.provider(() -> project.getName() + ".js"));
|
js.getTargetFileName().convention(project.provider(() -> project.getName() + ".js"));
|
||||||
js.getAddedToWebApp().convention(property("js.addedToWebApp").map(Boolean::parseBoolean).orElse(false));
|
js.getAddedToWebApp().convention(property("js.addedToWebApp").map(Boolean::parseBoolean).orElse(false));
|
||||||
js.getOptimization().convention(property("js.optimization").map(OptimizationLevel::valueOf)
|
js.getOptimization().convention(property("js.optimization").map(OptimizationLevel::valueOf)
|
||||||
.orElse(OptimizationLevel.AGGRESSIVE));
|
.orElse(OptimizationLevel.BALANCED));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupWasmDefaults() {
|
private void setupWasmDefaults() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user