How can I dynamically link resources to my index.h...
# javascript
p
How can I dynamically link resources to my index.html via webpack? https://kotlinlang.org/docs/running-kotlin-js.html#run-the-browser-target Only shows hardcoded strings for the generated js file. When i want to use the webpack content hash for example, what is the best way to implement this?
outputFileName = “main.bundle-[contenthash].js”
c
for plain JS project’s there is https://webpack.js.org/plugins/html-webpack-plugin/#configuration not sure if that will work with gradle build task order.
p
I hoped for a solution I can configure via gradle.
c
No, nothing build in. Gradle does not know anything of the outputs of webpack and what to put in the index.html files.