Skip to content

Opinion/vite-base

Repository files navigation

@opinion/vite-base

Choose a version

Wha'du heck is this?

My biggest gripe with vite is that it doesn't use ./src out of the box. vite-base is a configured vanilla javascript vite installation without any frameworks. Perfect for simple projects. Download and start working.

Features

  • Vite configured for vanilla Javascript
  • Configured with prettier
  • (Optional) Configured with TailwindCSS
  • Code moved to ./src
    • Javascript files in ./src/js
    • Public/asset files in ./src/static
    • CSS files in ./src/styles
  • Added .env.development
  • Added .env.production
  • Asynchronous vite.config.js ready for modification
    • Added isProduction check
    • Added .env loading based on current mode

Preview

vite-base#tailwindcss preview

Get started

  1. Download
  2. npm install
  3. npm run dev

Consider uncommenting #.env.development and #.env.production from .gitignore if you are going to tell it all your dirty secrets and passwords 🐸.

About

A configured vanilla javascript vite installation without any frameworks. Perfect for simple projects. Download and start working.

Topics

Resources

Stars

Watchers

Forks