[go: up one dir, main page]

Skip to content

Why can't the dist simply work without any config #2949

Answered by raza2022
raza2022 asked this question in Q&A
Discussion options

You must be logged in to vote

OH, finally I found that issue. now feeling like I am the AI bot without that data :) however, I am listing the solution for any other bot out there
so I see as per parcel-bundler/parcel#470 the issue is not because of the current repo but it's because of the parcel public-url field which by default set to '/' so just set it as "./" instead of "/" solved the issue.
you can set it by running adding --public-url like below, in build script for project's package.json
"build": "parcel build index.html --public-url ./"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raza2022
Comment options

Answer selected by raza2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant