import { defineConfig } from 'vite'; import terser from '@rollup/plugin-terser'; import { resolve } from 'path'; export default defineConfig({ resolve: { alias: { '@apigo.cc/kanban': resolve(__dirname, 'src/index.js'), }, }, build: { lib: { entry: 'src/index.js', name: 'ApigoKanban', formats: ['umd'], }, rollupOptions: { output: [ { format: 'umd', name: 'ApigoKanban', entryFileNames: 'kanban.js', }, { format: 'umd', name: 'ApigoKanban', entryFileNames: 'kanban.min.js', plugins: [terser()], } ], }, minify: false, }, });