Github CLI usage
If you don't use github CLI to manage yours repositories I recommend that you do it. Install here
gh auth login
Then you can create a repo using this code as a template, the command will create your repo directory.
gh repo create <ownRepoName> --private --template jarraga/vite-vue3-template
? This will create the "<ownRepoName>" repository on Github, Continue? (Y/n) -> YES
? Create a local project directory for "<ownRepoName>"? (Y/n) -> YES
Ok, you have new repository created on Github and local files to start coding.
Let's install dependencies and run dev server.
cd <ownRepoName>
npm i
npm run dev
And that's it, open folder with your code editor and start make changes.
Recomended plugins if you're using visual studio code:
Thing to keep in mind for tailwindcss
If you want to make components using dynamic tailwind classes, you have to literal write the entire classes in an object and acces to it, instead of use something like bg-${color}-300
Simon explain this in detail in this video:
https://youtu.be/HZn2LtBT59w?t=509
I hope you find it useful! 👋🏽
Top comments (3)
Hi, tell me I didn't see how to add an alias @?
does not work
Hi! your vite.config.js should look like this:
Tell me if it works!
Thanks!