15 lines
343 B
JavaScript
15 lines
343 B
JavaScript
// vite.config.js
|
|
import { resolve } from 'path'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
// Could also be a dictionary or array of multiple entry points
|
|
entry: resolve(__dirname, 'src/main.ts'),
|
|
name: 'phpb-demo-template',
|
|
fileName: 'phpb-demo-template',
|
|
},
|
|
},
|
|
})
|