schlechtenburg/packages/docs/vite.config.js

27 lines
588 B
JavaScript
Raw Permalink Normal View History

2021-03-09 23:29:50 +00:00
import vueJsx from '@vitejs/plugin-vue-jsx';
export default {
base: './',
resolve: {
alias: {
'@schlechtenburg/core': '../core/lib/index.ts',
'@schlechtenburg/paragraph': '../paragraph/lib/index.ts',
'@schlechtenburg/heading': '../heading/lib/index.ts',
'@schlechtenburg/image': '../image/lib/index.ts',
'@schlechtenburg/layout': '../layout/lib/index.ts',
},
},
plugins: [
vueJsx({}),
],
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment',
},
build: {
minify: false,
sourcemap: true,
outDir: 'dist',
},
};