@padcom/vite-config-vue-lib
v0.10.0
Published
Vite configuration for Vue.js library
Downloads
103
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
- @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