'React build with parcel
I started using Parcel (together with React), and when I build a project, in the file "index.html " links start with "/", and should be with "./", who knows how to configure?
Solution 1:[1]
On the CLI, Parcel has a parameter --public-url, which you can use to change / to ./:
So your build script might look something like: npx parcel build index.html --public-url ./
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sam |
