@padcom/vite-vue-lib-config
v0.0.3
Published
Vite configuration for Vue.js library
Downloads
1
Readme
Vite configuration for Vue.js libraries
This package exposes a function that defines a a Vite configuration for Vue.js applications. The default configuration consists of the following elements:
Base configuration
- 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
Test configuration
This configuration sets up testing using vitest
./vitest.setup.js
initialization file- test coverage using @vitest/coverage-v8
- @vue/test-utils
- jsdom