If I need to read a file inside the `resources` di...
# javascript
e
If I need to read a file inside the
resources
directory from code, where should I point to (e.g., under the
build
directory)?
a
For Kotlin/Js (browser) make sure your resources are published together with your web app, then you can
Copy code
window.fetch(url/path/to/file.ext)
For Kotlin/Js (Node), you are going to need something like "fs"
e
@andylamax on Node, what I'm missing is exactly where to look for those resources after compilation is done.