sparkvite Tailwind Templates

Sparkvite

SparkVite is a modern template designed to ignite your development workflow with Vite and Tailwind CSS. It offers a streamlined setup for fast, optimized builds and an efficient development experience, helping you create stunning web applications with ease.

⚑ SparkVite

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.

πŸš€ Getting Started

Clone the Repository

To get started, clone the SparkVite repository with:

git clone https://github.com/iambhvsh/sparkvite.git

Install Dependencies

Navigate to your project directory and install the necessary dependencies:

npm install

Initial Setup

Begin by editing index.html for initial configurations. To add new pages, simply create a new .html file in the pages directory.

πŸ“‚ Project Configuration

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"
  }

Vercel Deployment Configuration

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"
    }
  ]
}

πŸ—οΈ Build & Development

Development Server

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.

Production Build

To generate a production-ready build, execute:

npm run build

This creates optimized assets for deployment.

Local Preview

Preview your production build locally with:

npm run preview

πŸ“ Fixed Issues and Ongoing Enhancements

βœ… Fixed Issues

  • Page Management: Manual updates to vite.config.js were previously required to add new pages. This has been streamlined with dynamic page handling in index.js.

πŸ”§ Ongoing Enhancements

  • Dynamic Page Integration: The template dynamically includes .html files from the pages directory. Future improvements will focus on refining error handling and enhancing performance.

🀝 Contributions and Feedback

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! πŸš€βœ¨

Top categories

Loading Svelte Themes