vue-directional-carousel
Version:
This is a Vue 3 component that allows you to set the direction of image movement not only vertically and horizontally but also in different directions (left, right, up, down).
34 lines (32 loc) • 777 B
text/typescript
/// <reference types="vitest" />
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import ViteImagesPlugin from 'vite-plugin-vue-images';
import dts from 'vite-plugin-dts'
export default defineConfig({
plugins: [vue(), ViteImagesPlugin(), dts({
rollupTypes: true,
tsconfigPath: './tsconfig.app.json'
})],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
lib: {
entry: 'src/components/DirectionalCarousel.vue',
name: 'VueDirectionalCarousel',
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
assetsInlineLimit: 4096
},
});