Omar Ahmed
03/03/2020, 9:42 AMRoman Artemev [JB]
03/03/2020, 10:05 AMOmar Ahmed
03/03/2020, 10:28 AMRoman Artemev [JB]
03/03/2020, 11:07 AMRoman Artemev [JB]
03/03/2020, 11:17 AMSean Keane
03/03/2020, 11:29 AMSean Keane
03/03/2020, 11:32 AMRoman Artemev [JB]
03/03/2020, 11:38 AMSean Keane
03/03/2020, 11:39 AMSean Keane
03/03/2020, 12:24 PMdistributions
folder. I ran npm publish with the set package.json
. But when I run the code I instantly get
Uncaught TypeError: m is not a function
at Object.l (WebSocketSession.kt:24)
Eivind Nilsbakken
03/03/2020, 12:42 PMSean Keane
03/03/2020, 12:46 PMEivind Nilsbakken
03/03/2020, 12:55 PMSean Keane
03/03/2020, 12:56 PMbuild/distribution
folder in your common code it has everything bundled in one .js file.
doesn't seem to have done much DCE'ing though as its 1.5mb. Ill see if I can play with the webpack configEivind Nilsbakken
03/03/2020, 1:02 PMbuild/js/packages/.../webpack.config.js
.Sean Keane
03/03/2020, 1:07 PMOmar Ahmed
03/03/2020, 3:17 PMSean Keane
03/03/2020, 3:18 PMOmar Ahmed
03/03/2020, 3:18 PMOmar Ahmed
03/03/2020, 3:18 PMtask assembleWeb(type: Sync) {
configurations.compile.each { File file ->
from(zipTree(file.absolutePath), {
includeEmptyDirs = false
include { fileTreeElement ->
def path = fileTreeElement.path
path.endsWith(".js") && (path.startsWith("META-INF/resources/") ||
!path.startsWith("META-INF/"))
}
})
}
from compileKotlin2Js.destinationDir
into "${projectDir}/web"
dependsOn classes
}
assemble.dependsOn assembleWeb
Sean Keane
03/03/2020, 3:40 PMOmar Ahmed
03/03/2020, 3:43 PMSean Keane
03/03/2020, 3:43 PMOmar Ahmed
03/03/2020, 3:47 PMOmar Ahmed
03/03/2020, 3:50 PM<script src="js/libs/kotlin.js"></script>
<script src="js/libs/mylibrary.js"></script>