I'm trying to fetch a .wasm file and it's always 404 no matter where I place it. #1610
-
I've placed inside a public folder, I've placed it inside the build folder. No matter where, when I load the app, the file is 404. I'm using "dev": "preact watch" to run the server. |
Beta Was this translation helpful? Give feedback.
Answered by
rschristian
Nov 13, 2021
Replies: 1 comment 5 replies
-
What do you mean by "a public folder"? By default, |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Tyler2k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
build/
has no bearing on the dev server. That's your built output, used by theserve
command in the templates or for upload to a server.What do you mean by "a public folder"?
By default,
src/assets/
is copied into your output and you can put static assets there. Or, you can add another path to copy to your build output usingCopyWebpackPlugin
.