23 lines
396 B
JavaScript
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 },
|
|
)
|