You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2021. It is now read-only.
When parcel is launched with the option parcel build --public-url ./ in order to build for deployment outside the root of the server, static-rendered routes no longer reference their resources correctly.
For my directory structure
build/
index.html
script_hash.js
myroute/
index.html
build/index.html will have a script tag that looks like: <script src="script_hash.js"></script>
(Which is good)
BUT
build/myroute/index.html will also have a script tag which looks like: <script src="script_hash.js"></script>
(Which will fail since the script is not in the same subdir)
The same applies to other resources (CSS, ico, etc.)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When parcel is launched with the option
parcel build --public-url ./
in order to build for deployment outside the root of the server, static-rendered routes no longer reference their resources correctly.For my directory structure
build/index.html will have a script tag that looks like:
<script src="script_hash.js"></script>
(Which is good)
BUT
build/myroute/index.html will also have a script tag which looks like:
<script src="script_hash.js"></script>
(Which will fail since the script is not in the same subdir)
The same applies to other resources (CSS, ico, etc.)
The text was updated successfully, but these errors were encountered: