This is my portfolio website
npm init -y // This initializes the directory as a node project
npm install -D tailwindcss postcss autoprefixer vite // Installs required packages
Create a CSS file "input.css" and add it to your html and also add these lines in css
@tailwind base;
@tailwind components;
@tailwind utilities;
In your tailwind.config.js replace content[], with content["*"]
remove "test": "echo \"Error: no test specified\" && exit 1" and
add
"start": "vite",
"build": "vite build"
in script tag in package.json
npm run build // This create a dest folder with index.html
and asset, use this dest folder to host the site
npm run start (use this command on development server)