hikamaeng
03/17/2024, 11:27 AMrootProject.plugins.withType<NodeJsRootPlugin> {
rootProject.the<NodeJsRootExtension>().npmInstallTaskProvider.configure{
inputs.files("package.json", "yarn.lock")
outputs.dir("node_modules")
}
}
rootProject.plugins.withType<YarnPlugin>{
rootProject.the<YarnRootExtension>().yarnLockMismatchReport = YarnLockMismatchReport.NONE
rootProject.the<YarnRootExtension>().reportNewYarnLock = false
rootProject.the<YarnRootExtension>().yarnLockAutoReplace = false
}
After this setting, the build time for KotlinJS has dramatically decreased.
Especially, the configuration of npmInstallTaskProvider was effective.Chrimaeon
03/17/2024, 11:34 AMChrimaeon
03/17/2024, 11:36 AMArtem Kobzar
03/18/2024, 8:42 AM