Choose one: 馃悰 bug report
Git repo to replicate issue:
https://github.com/taviroquai/ReactSemanticParcel
Build does not assign correct paths for relative URL using:
$ parcel build src/index.js --public-url ./
Relative paths to build assets
index.html contains full paths:
<script src="/src.d37f3ef7.js"></script>
Also, when click to open semantic modal window, image gives 404 because of full path URL
I have no idea...
Testing React, Semantic UI and ParcelJS
Git repo to replicate issue:
https://github.com/taviroquai/ReactSemanticParcel
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.7.0
| Node | 8.4.0
| npm/Yarn |npm 5.3.0
| Operating System | Ubuntu 16.04
Your parcel build command should be pointing to src/index.html
:
parcel build src/index.html --public-url ./
and delete your dist
folder before running parcel build
looks ok for me
@f-a-a Perfect! I thought I was doing something wrong :) Keep up the great work!
--public-url
seems to be ignored in ^2.0.0-beta.1
completely. Regardless of what I provide, the script tag path looks like /client.3b43ab2b.js
Most helpful comment
Your parcel build command should be pointing to
src/index.html
:and delete your
dist
folder before runningparcel build
looks ok for me