Sorry for reposting my question but I’m really eager to play with KotlinJS and can’t find a solution… If I compile my little KotlinJS/npm/webpack4 example it works with ‘npm start’ for the first time but if I change something the change gets not reflected. Browser cache ist turned off. The odd thing is that the modification date of kotlinApp.js is always 01.01.70!!! Issue report is here: https://youtrack.jetbrains.com/issue/CRKA-94
All the files are picked up correctly with that config
gbaldeck
10/23/2018, 5:59 PM
Notice line 47 in webpack.common.js, thats where I tell webpack where the kotlin files (modules) are located
gbaldeck
10/23/2018, 6:01 PM
hmm looking at your config it looks like you're doing the same thing, the difference is you're using the KotlinWebpack plugin to build while I'm using gradle
m
Mike
10/23/2018, 6:14 PM
Yes - it must be somewhere in KotlinWebpackPlugin. I’m on Mac. Maybe this makes also a difference. Moddate 01.01.70 makes me also a bit nervous.
g
gbaldeck
10/23/2018, 6:46 PM
Yeah must be in that plugin, switching to gradle for kotlin then webpack to bundle may be a good option. Plus your kotlin libraries and build tools can stay more up to date that way