Created
August 27, 2025 17:22
-
-
Save mateusreis/4ba2289fc381b2f41d2e19415a37b35f to your computer and use it in GitHub Desktop.
fix no path relativo dos projetos vite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. adicione --base='./' no npm run build: | |
{ | |
"name": "purple-moon-1", | |
"private": true, | |
"version": "0.0.0", | |
"type": "module", | |
"scripts": { | |
"dev": "vite", | |
"build": "vite build --base='./'", | |
"preview": "vite preview" | |
}, | |
"devDependencies": { | |
"vite": "^6.3.4" | |
}, | |
"dependencies": { | |
"three": "^0.174.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment