import path from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

export default defineConfig({
  root: path.resolve(__dirname, 'src/app-public'),
  base: '/ksef/',

  plugins: [vue()],

  build: {
    outDir: path.resolve(__dirname, 'dist-app'),
    emptyOutDir: true,
    minify: 'esbuild',
    sourcemap: false,
  },

  server: {
    port: 5173,
    open: true,
  },
});
