Kotlin/JS, Gradle + Webpack arguments

I seem to have this working using @simonjacobs answer here: https://discuss.kotlinlang.org/t/kotlin-js-react-accessing-configuring-environment-variables/16906/9