18 lines
397 B
JavaScript
18 lines
397 B
JavaScript
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import path from 'path'
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [vue()],
|
||
|
define: {
|
||
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
||
|
},
|
||
|
build: {
|
||
|
lib: {
|
||
|
entry: path.resolve(__dirname, 'frontend/entry.js'),
|
||
|
name: 'AddLinks',
|
||
|
fileName: (format) => `add_links.${format}.js`,
|
||
|
},
|
||
|
},
|
||
|
})
|