update packages and add valign
This commit is contained in:
23
scripts/reveal.js/plugin/markdown/vite.config.ts
Normal file
23
scripts/reveal.js/plugin/markdown/vite.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { resolve } from 'path';
|
||||
import { defineConfig } from 'vite';
|
||||
import { appendExtension } from '../../vite.config.ts';
|
||||
import { createPluginDts } from '../vite-plugin-dts.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/markdown': resolve(__dirname, 'index.ts'),
|
||||
},
|
||||
name: 'RevealMarkdown',
|
||||
fileName: appendExtension,
|
||||
},
|
||||
},
|
||||
plugins: [createPluginDts('markdown')],
|
||||
});
|
||||
Reference in New Issue
Block a user