new build script + fix draw

This commit is contained in:
Felix Roos 2022-05-17 22:45:23 +02:00
parent ed35f967b0
commit 806c8925c9
5 changed files with 12 additions and 2 deletions

View file

@ -14,8 +14,12 @@ const options = {
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), mdx(options)],
build: {
outDir: '../out/tutorial',
},
base: '/tutorial/',
});
// jsxRuntime:'classic' to prevent "jsxDevRuntime.exports.jsxDEV is not a function" for dev mode
// mode: 'development',
// react({ jsxRuntime: 'classic' }),
// react({ jsxRuntime: 'classic' }),