-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: migrate from create-react-app
to vite
#5
Conversation
The built react app imports the javascript and css modules as absolute paths:
<head>
<script type="module" crossorigin src="/assets/index-Brj1chng.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BxdD1MKp.css">
</head> Changing to relative imports resolves the issue and app works as expected. <head>
<script type="module" crossorigin src="./assets/index-Brj1chng.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BxdD1MKp.css">
</head> Images (and by extension other assets) also the same issue. |
@sysrage requesting your review |
Resolved this by setting |
react-scripts
tovite