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-project
then install dependencies
cd my-new-project
npm install
# or "npm i" as shortcut...
and get started:
npm run dev
This 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 build
the 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#sass
Template with SASS & Bootstrap v5:
npx degit mohole/vite-starter#bootstrap
Template with Tailwind:
npx degit mohole/vite-starter#tailwind
To customize and evolve the complexity of the project you can follow the official Vite.js documentation.
Released under the MIT license.