This package exposes a function that defines a a Vite configuration for Vue.js applications. The default configuration consists of the following elements:
- the
@/
alias to./src
- vite-eslint-plugin plugin
- @padcom/vite-plugin-vue-i18n
- @vitejs/plugin-vue
- @vue/test-utils
- autoprefixer
- tailwindcss
- vite-svg-loader (by default in component import mode)
The base library configuration (without vitest-based testing) can be used through the
defineVueBaseConfig()
function
This configuration sets up testing using vitest
-
./vitest.setup.js
initialization file - test coverage using @vitest/coverage-v8
- @vue/test-utils
- jsdom