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