Big Chungus
09/23/2019, 2:43 PMSoren Valle
09/23/2019, 2:51 PMBig Chungus
09/23/2019, 3:08 PMBig Chungus
09/23/2019, 3:08 PMSoren Valle
09/23/2019, 3:12 PMBig Chungus
09/23/2019, 4:17 PMBig Chungus
09/23/2019, 4:20 PM./gradlew jsBrowserWebpack -Pprod
produces minified DCE'd bundle with all static files from webDir
at build/distributions
Soren Valle
09/23/2019, 4:21 PMSam Garfinkel
10/02/2019, 7:43 PMKotlinJsCompilation
block. For example, mine looks like the following:
kotlin {
targets {
js {
val main by compilations.getting {
packageJson {
devDependencies += arrayOf(
"webpack-merge" to "4.2.2",
"terser-webpack-plugin" to "2.0.1",
"html-webpack-plugin" to "3.2.0",
"html-webpack-template" to "6.2.0",
"file-loader" to "4.2.0",
"style-loader" to "1.0.0",
"css-loader" to "3.2.0",
"mini-css-extract-plugin" to "0.8.0",
"style-ext-html-webpack-plugin" to "4.1.2",
"corejs-upgrade-webpack-plugin" to "2.2.0"
)
}
}
}
}
}