Answer the question
In order to leave comments, you need to log in
Why empty index.html in build folder?
I started the build with the npm run build command, the build folder appeared, but the index.html in it is empty. Everything runs on localhost.
Answer the question
In order to leave comments, you need to log in
Because you need to add a directive to package.json "homepage": "."
because webpack tries to load static files from the root of the file system, not from the build directory.
And this is not at all an obvious thing, and not "what is the question, such is the answer."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question