зеркало из https://github.com/nextcloud/text.git
24 строки
519 B
JavaScript
24 строки
519 B
JavaScript
|
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' }
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
})
|