I wish I had a vite.config.js but I don't (I config 2 projects with Vite + Vanilla JS (no TS) and added Tailwind to one of them). I don't know how to create a github page
Can you help me?
THIS is the best method. Much faster deployment time than the article's one.
For a custom domain, change
in vite.config.js
base: "/"
and in package.json
"homepage": "your-custom-domain",
Besides that, you'll be free of git errors ocasionated by adding -f to git the dist folder and if an error is found, the folder dist got added to git, so your deploy is not going to work
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Or add:
base: "/<repo>/",
tovite.config.js
,npm install gh-pages --save-dev
add to
package.json
and then run command
npm run deploy
to keep it simple.This is the way!
This just saved my life. Thank you!!!
I wish I had a vite.config.js but I don't (I config 2 projects with Vite + Vanilla JS (no TS) and added Tailwind to one of them). I don't know how to create a github page
Can you help me?
Thanks bro
THIS is the best method. Much faster deployment time than the article's one.
For a custom domain, change
in
vite.config.js
base: "/"
and in
package.json
"homepage": "your-custom-domain",
Besides that, you'll be free of git errors ocasionated by adding -f to git the dist folder and if an error is found, the folder dist got added to git, so your deploy is not going to work