Hey guys! How can i pass environment variables fro...
# javascript
f
Hey guys! How can i pass environment variables from
Gradle
to
WebPack
with
org.jetbrains.kotlin.js
?
b
Not an env var, but you can pass js variables via webpack.d folder
Dynamically write js file from gradle task
⬆️ 1
f
It's an access key... So i can't declare it in a file 😢
Where I can find this example of writing it dynamically?
b
It's just File(your file name).writeText(your text). Then remkve that file after the last build step
b
@Costa please create an issue http://kotl.in/issue with details.
cc @Ilya Goncharov [JB]