blob: faa915a88e6be6b6ea291e4f8c27f494a16e5700 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { resolve } from 'path'
import { defineConfig } from 'vite'
import { createVuePlugin } from 'vite-plugin-vue2'
import { dependencies } from './package.json'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [createVuePlugin()],
build: {
lib: {
entry: resolve(__dirname, 'src/package.js'),
name: '@nextcloud/text',
fileName: 'index.js',
formats: ['es'],
},
rollupOptions: {
external: Object.keys(dependencies),
output: {
globals: { vue: 'Vue' }
},
},
},
})
|