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
Running the below command doesn't generate a working static version:
npm run dist
The generated index.html file has the below lines:
<link rel="stylesheet" href="/src.77de5100.css"></head>
and
<script src="/src.77de5100.js"></script>
the "/" before the src.77de5100.js isn't needed, and stops the javascript files from being loaded.
src.77de5100.js
The text was updated successfully, but these errors were encountered:
Yes, this is a known issue when we build with parcel, you can't run it directly, but need to be run under a HTTP server.
parcel
It can be fixed by adding a --public-url into the command. Like this:
--public-url
parcel build index.html --public-url .
I'll add the fix.
Sorry, something went wrong.
Note that ./src.77de5100.js works too
./src.77de5100.js
It should works now! 🍺
Successfully merging a pull request may close this issue.
Running the below command doesn't generate a working static version:
npm run dist
The generated index.html file has the below lines:
<link rel="stylesheet" href="/src.77de5100.css"></head>
and
<script src="/src.77de5100.js"></script>
the "/" before the
src.77de5100.js
isn't needed, and stops the javascript files from being loaded.The text was updated successfully, but these errors were encountered: