mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-12 01:25:17 +02:00
23 lines
557 B
TypeScript
23 lines
557 B
TypeScript
import { resolve } from 'path';
|
|
import { defineConfig } from 'vite'
|
|
import { appendExtension } from '../../vite.config.ts';
|
|
|
|
// Once Vite supports multiple entries for plugins, this build can
|
|
// be merged into the main vite.config.ts.
|
|
// See https://github.com/vitejs/vite/pull/10609
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
emptyOutDir: false,
|
|
lib: {
|
|
formats: ['es', 'umd'],
|
|
entry: {
|
|
'plugin/zoom': resolve(__dirname, 'index.js'),
|
|
},
|
|
name: 'RevealZoom',
|
|
fileName: appendExtension
|
|
}
|
|
},
|
|
plugins: [],
|
|
})
|