Welcome to SparkVite β the sophisticated template crafted to supercharge your development process using Vite and Tailwind CSS. Designed for seamless integration and performance, SparkVite accelerates your development workflow, enabling the creation of visually stunning and highly optimized web applications.
To get started, clone the SparkVite repository with:
git clone https://github.com/iambhvsh/sparkvite.git
Navigate to your project directory and install the necessary dependencies:
npm install
Begin by editing index.html
for initial configurations. To add new pages, simply create a new .html
file in the pages
directory.
To streamline your build and development processes, configure the following scripts in your package.json
:
"scripts": {
"build:css": "tailwindcss -i ./src/input.css -o ./src/output.css",
"build": "npm run build:css && vite build",
"dev": "npm run build:css && vite",
"preview": "vite preview",
"test": "echo \"Error: no test specified\" && exit 1"
}
For Vercel deployments, ensure you have a vercel.json
file in your project root with the following configuration:
{
"rewrites": [
{
"source": "/:path*",
"destination": "/pages/:path*.html"
},
{
"source": "/(.*)",
"destination": "/pages/404.html"
}
]
}
Launch the development server with:
npm run dev
This command starts Viteβs development server with hot module replacement (HMR) for a smooth development experience.
To generate a production-ready build, execute:
npm run build
This creates optimized assets for deployment.
Preview your production build locally with:
npm run preview
vite.config.js
were previously required to add new pages. This has been streamlined with dynamic page handling in index.js
..html
files from the pages
directory. Future improvements will focus on refining error handling and enhancing performance.We value community contributions and feedback! Your insights and suggestions help us continually enhance SparkVite. Explore the project, report issues, and contribute through pull requests. Together, we can elevate this development experience.
Thank you for choosing SparkVite. We look forward to seeing the amazing projects you create! πβ¨