repod/vite.config.mjs
Michel Roux 19c56ef31d
All checks were successful
repod / xml (push) Successful in 19s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m4s
repod / release (push) Has been skipped
fix: 🔨 move vite dev to main
2024-09-02 14:43:39 +02:00

28 lines
536 B
JavaScript

import { createAppConfig } from '@nextcloud/vite-config'
import { defineConfig } from 'vite'
import vueDevTools from 'vite-plugin-vue-devtools'
const config = defineConfig(({ mode }) => ({
build: {
rollupOptions: {
output: {
entryFileNames: 'js/[name].js',
format: 'iife',
manualChunks: false,
},
},
sourcemap: mode !== 'production',
},
define: {
__VUE_PROD_DEVTOOLS__: mode !== 'production',
},
plugins: [vueDevTools()],
}))
export default createAppConfig(
{
main: 'src/main.js',
},
{ config },
)