1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-09-01 18:54:29 +02:00

switch from gulp to vite to build, add types for reveal.js config

This commit is contained in:
Hakim El Hattab
2024-03-28 11:07:57 +01:00
parent eb95b14531
commit a89af36022
90 changed files with 61921 additions and 1106 deletions

View File

@@ -0,0 +1,22 @@
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: [],
})