21 lines
429 B
TypeScript
21 lines
429 B
TypeScript
import { createAppConfig } from '@nextcloud/vite-config'
|
|
import { defineConfig } from 'vite'
|
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
|
|
|
const config = defineConfig(({ mode }) => ({
|
|
build: {
|
|
sourcemap: mode !== 'production',
|
|
},
|
|
define: {
|
|
__VUE_PROD_DEVTOOLS__: mode !== 'production',
|
|
},
|
|
plugins: [vueDevTools()],
|
|
}))
|
|
|
|
export default createAppConfig(
|
|
{
|
|
main: 'src/main.ts',
|
|
},
|
|
{ config, inlineCSS: true },
|
|
)
|