Simple starter kit boilerplate based on Vite.js vanilla template.
Use degit to quickly clone the repo to a new folder:
npx degit mohole/vite-starter my-new-projectthen install dependencies
cd my-new-project
npm install
# or "npm i" as shortcut...and get started:
npm run devThis will start a Rollup development server instance in hot-reload mode (this will automatically update your browser when you apply any changes to the source files), your project will be exposed at localhost:3000.
To create the optimized files to publish to whaterver static hosting you choose, just run:
npm run buildthe result will be available in the ./dist folder.
There are a few different templates available in various branches, the default template use plain HTML+CSS+Javascript.
Template with SASS:
npx degit mohole/vite-starter#sassTemplate with SASS & Bootstrap v5:
npx degit mohole/vite-starter#bootstrapTemplate with Tailwind:
npx degit mohole/vite-starter#tailwindTo customize and evolve the complexity of the project you can follow the official Vite.js documentation.
Released under the MIT license.