Vuetify 2 development made easy with the power of Vite. This template should help get your next Vuetify 2 project started quickly.
- Vue 2, Vite 2
- Vuetify 2 support with component auto importing (powered by unplugin-vue-components)
- TypeScript
- ESLint.. opinionated single quotes, no semi, PascalCase vue templates
- Custom SASS/SCSS Vuetify variables support
Create a repo from this template on GitHub.
Using degit
npx degit abdu-udwz/vite-vuetify2 vuetify-app
cd vuetify-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpmRun the following and visit http://localhost:8080
pnpm devpnpm buildThis starter template comes shipped with pre-packed support for custom SASS/SCSS variables. To customize Vuetify's SASS variables create a file named variables.sass or variables.scss in the directory src/style.
You can learn more on Vuetify's SASS variables on this page.
NOTE
Using custom SASS variables will increase the page load time in development mode. And currently it seems to be VERY slow.
Custom variables support is enabled even if the the file
variables.sass/scssis empty.This starter template tries to replace Vuetify's webpack plugin vuetify-loader which is the package responsable for loading styles in the tradition webpack-based dev tool.
- Update
package.jsonwith your project details (name, author, ..etc) - Check & update dependencies
- Modifying
.eslintrc.jsto your preferred style.
The first page load is slow because Vite transforms SASS files to a browser-recognizable format on the initial load. Subsequent page loads should be fast unless changes to Vuetify's SASS variables are made.
