mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-29 09:19:57 +02:00
switch from gulp to vite to build, add types for reveal.js config
This commit is contained in:
20
vite.config.styles.ts
Normal file
20
vite.config.styles.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
root: './',
|
||||
build: {
|
||||
emptyOutDir: false,
|
||||
cssCodeSplit: true,
|
||||
lib: {
|
||||
formats: ['es'],
|
||||
entry: {
|
||||
'reveal': resolve(__dirname, 'css/reveal.scss'),
|
||||
'reset': resolve(__dirname, 'css/reset.css'),
|
||||
|
||||
'theme/black': resolve(__dirname, 'css/theme/black.scss'),
|
||||
},
|
||||
}
|
||||
},
|
||||
plugins: [],
|
||||
})
|
Reference in New Issue
Block a user