We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried this code, and it works fine for the static file, it reads my index.html and serves it, but my dist folder is never served.
<!-- Servers correctly inside localhost:8080 --> <!DOCTYPE html> <html> <head> <meta charset="utf8" /> <meta name="viewport" content="width=device-width" /> <title>Button Sandbox</title> </head> <body> <!-- Always fails saying it cant find ./dist/index.js, looking inside chrome sources, there is index.html but no dist folder --> <script src="./dist/index.js"></script> </body> </html>
!production && serve({ contentBase: ["dist", "static"], port: "8080" }),
The text was updated successfully, but these errors were encountered:
What is your folder structure?
If index.js is at dist/index.js, you might want:
<script src="/index.js"></script>
Sorry, something went wrong.
The folder structure was:
dist - index.js static - index.html
meaning that dist is outside static, its another folder, I will try looking as root instead.
Did you ever find a solution to this? I have a similar issue, the dist folder is returning 404
Not that I remember.
No branches or pull requests
Tried this code, and it works fine for the static file, it reads my index.html and serves it, but my dist folder is never served.
The text was updated successfully, but these errors were encountered: