Change Default Root Directory In React Project

We will get a default root directory in the html file to access after run npm run build.
For example, there is <script src="/static/js/2.665e3ec0.chunk.js"> in index.html.
How to change the default root direction ?
We can configure our react project.
Add this line in your package.json.

"homepage": "<where you want to be>"

Categories: Web

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Stylize Your Code
: You can use the tool to stylize your code.

X
A prohibited operation
0
Would love your thoughts, please comment.x
()
x