repod/vite.config.mjs
Michel Roux 1feb0291bb
All checks were successful
repod / xml (push) Successful in 33s
repod / php (push) Successful in 1m8s
repod / nodejs (push) Successful in 1m23s
repod / release (push) Has been skipped
fix: 🎉 first working basic functionnalities
2024-08-09 16:50:24 +02:00

23 lines
396 B
JavaScript

import { createAppConfig } from '@nextcloud/vite-config'
import { defineConfig } from 'vite'
const config = defineConfig(({ mode }) => ({
build: {
rollupOptions: {
output: {
entryFileNames: 'js/[name].js',
format: 'iife',
manualChunks: false,
},
},
sourcemap: mode === 'development',
},
}))
export default createAppConfig(
{
main: 'src/main.js',
},
{ config },
)