Is there a recommended way to read files from a pr...
# javascript
r
Is there a recommended way to read files from a project's Resources folder in Kotlin JS?
b
Browser or nodejs?
c
Would also highly appreciate tips for Browser env specifically @Big Chungus
b
Your only option then is simply use fetch api with relative paths
I.e. fetch("./my.properties").then {console.log(it)}
Assuming my.properties is at the resources folder root
c
Makes a ton of sense. Thanks!