Skip to content

when React project is deployed, js and css are not loaded by the index.html !! #9008

Answered by TwistYoFate
issimissimo asked this question in Q&A
Discussion options

You must be logged in to vote

in package.json replace vite build with vite build --base=./ , this worked for me, you are free to provide any base path here according to your need

Replies: 4 comments 13 replies

Comment options

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

Comment options

You must be logged in to vote
11 replies
@DorKatzir
Comment options

@arm-code
Comment options

@BerryCool
Comment options

@romeshl
Comment options

@AdanKhan22
Comment options

Answer selected by issimissimo
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Converted from issue

This discussion was converted from issue #9002 on July 09, 2022 14:38.