RePod-Nextcloud-App/vite.config.mjs

26 lines
508 B
JavaScript
Raw Normal View History

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',
},
},
sourcemap: mode !== 'production',
},
define: {
2024-09-02 14:43:39 +02:00
__VUE_PROD_DEVTOOLS__: mode !== 'production',
},
plugins: [vueDevTools()],
}))
export default createAppConfig(
{
main: 'src/main.js',
},
{ config, inlineCSS: true },
)