rowt/frontend/vite.config.js
Marie Birner 0b6461eeb5
All checks were successful
CI/CD Pipeline / test (push) Successful in 12m4s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped
[TASK] improve style searchable table
2024-04-14 17:43:18 +02:00

43 lines
1.0 KiB
JavaScript

import { defineConfig } from 'vite';
import { viteStaticCopy } from 'vite-plugin-static-copy'
export default defineConfig({
plugins: [
viteStaticCopy({
targets: [
{
src: './static/[!.]*',
dest: './',
},
],
})
],
publicDir: false, // disable copy `public/` to outDir
build: {
minify: 'terser', // Explicitly specify to use terser for minification
terserOptions: {
mangle: false, // Disable variable name mangling
keep_classnames: false,
keep_fnames: false,
},
rollupOptions: {
input: {
main: './main.ts',
logbook: './logbook.ts',
table: './table.ts',
// Example for more entry points
// test: './src/test.ts',
},
output: {
entryFileNames: '[name].js',
assetFileNames: '[name].css',
},
},
manifest: true, // generate manifest.json in outDir
outDir: '../static/',
},
css: {
devSourcemap: true, // disabled by default because of performance reasons
},
})