add-links/vite.config.js

18 lines
397 B
JavaScript
Raw Normal View History

2023-10-04 12:56:21 +01:00
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`,
},
},
})