import { defineConfig } from 'vite';
import { resolve } from 'path';

export default defineConfig({
  base: './',
  build: {
    outDir: 'dist',
    emptyOutDir: true,
    rollupOptions: {
      input: {
        index: resolve(__dirname, 'css/index.pcss.css'),
        kopfzeile: resolve(__dirname, 'js/kopfzeile.js')
      },
    output: {
      entryFileNames: '[name].js',
      chunkFileNames: '[name].js',
      assetFileNames: '[name].[ext]',
    },
    },
    cssMinify: false,
    sourcemap: true
  }
});

