ribesg
10/03/2019, 9:25 AMribesg
10/03/2019, 9:26 AMribesg
10/03/2019, 9:27 AMBig Chungus
10/03/2019, 9:33 AMBig Chungus
10/03/2019, 9:34 AMribesg
10/03/2019, 10:13 AMwebpack.conf.d
directory? It’s not documented by WebpackBig Chungus
10/03/2019, 10:14 AMBig Chungus
10/03/2019, 10:14 AMribesg
10/03/2019, 10:15 AMkotlin("js")
plugin, I think it’s a thing of kotlin("frontend")
ribesg
10/03/2019, 10:15 AMBig Chungus
10/03/2019, 10:16 AMribesg
10/03/2019, 10:16 AMkotlin("frontend")
looks deadBig Chungus
10/03/2019, 10:17 AMribesg
10/03/2019, 10:21 AMBig Chungus
10/03/2019, 10:22 AMribesg
10/03/2019, 10:23 AMBig Chungus
10/03/2019, 10:24 AMBig Chungus
10/03/2019, 10:24 AMribesg
10/03/2019, 11:13 AMwebpack.conf.d
folder because it crashes. Looks like you can’t do config.module.mode = "production";
Big Chungus
10/03/2019, 11:14 AMribesg
10/03/2019, 11:19 AMconfig.mode
. I found the webpack.config.js
which gets generated from the gradle build + webpack.conf.d directory files. It’s in a weird place, it’s in the root project build folder while my js project is in a sub-sub-subprojectribesg
10/03/2019, 11:19 AMBig Chungus
10/03/2019, 11:51 AMBig Chungus
10/03/2019, 11:52 AMIlya Goncharov [JB]
10/03/2019, 2:51 PMwebpack.config.d
config.devtool = 'source-map'
or even disable source maps, if you don’t need
It can improve your bundle sizeIlya Goncharov [JB]
10/03/2019, 2:55 PMwebpack.config.d
is directory, which Kotlin/JS plugin uses for additional configuration of webpack
. You can put in it any .js
files, and they will be inlined in final webpack.config.js
So you can override each property of webpack
and even write your own webpack configuration, if you want
Configuration object is available with name config
in js
filesribesg
10/03/2019, 3:22 PMsdeleuze
10/03/2019, 6:53 PMribesg
10/04/2019, 8:36 AM> Task :modules:client:client-web:runDceKotlin FAILED
error: duplicate target file will be created for '$projectDir/build/js/node_modules/core-js/index.js' and '$projectDir/build/js/node_modules/text-encoding/index.js'
Big Chungus
10/04/2019, 8:37 AMribesg
10/04/2019, 8:38 AMBig Chungus
10/04/2019, 8:39 AMribesg
10/04/2019, 8:43 AMrm -rf **/.gradle **/build
gradle :modules:client:client-web:build
gradle :modules:client:client-web:build
gradle :modules:client:client-web:build
3rd build still failed. I pushed my current state at https://github.com/Ribesg/Kita/tree/feature/initIlya Goncharov [JB]
10/04/2019, 8:45 AMnpm-dependencies
module), it can helpribesg
10/04/2019, 9:08 AM> File '/Users/ribesg/IdeaProjects/Kita/build/js/packages/kita-client-web-npm-dependencies/kotlin/kita-client-web-npm-dependencies.js' specified for property 'entry' does not exist.
Ilya Goncharov [JB]
10/04/2019, 9:19 AMnodejs
target for this module?
It is matter only for download npm dependencies by this module, you don’t need to bundle itribesg
10/04/2019, 9:46 AMbrowser
target can depend on a nodejs
target?ribesg
10/04/2019, 9:50 AMribesg
10/04/2019, 9:50 AMribesg
10/04/2019, 9:53 AMribesg
10/04/2019, 10:00 AMIlya Goncharov [JB]
10/04/2019, 10:00 AMribesg
10/04/2019, 10:04 AMIlya Goncharov [JB]
10/04/2019, 10:08 AMapp/webpack.config.d
There is override of entry point for webpack
Unfortunately there is no DCE support out-of-boxribesg
10/04/2019, 1:01 PMgaetan
10/04/2019, 3:30 PM