yude.jp/vite.config.ts

26 lines
564 B
TypeScript
Raw Normal View History

2024-01-15 13:28:35 +00:00
import { defineConfig } from 'vite'
2024-02-27 09:47:28 +00:00
import { resolve } from "path";
2024-01-15 13:28:35 +00:00
import react from '@vitejs/plugin-react-swc'
2024-04-06 22:29:35 +00:00
import mdx from '@mdx-js/rollup';
import remarkGfm from 'remark-gfm';
const mdxOptions = {
remarkPlugins: [remarkGfm],
rehypePlugins: [],
}
2024-01-15 13:28:35 +00:00
// https://vitejs.dev/config/
export default defineConfig({
2024-04-06 22:29:35 +00:00
plugins: [react(), { enforce: 'pre', ...mdx(mdxOptions) }],
2024-02-27 09:47:28 +00:00
build: {
2024-03-11 07:17:44 +00:00
sourcemap: true,
2024-02-27 09:47:28 +00:00
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
404: resolve(__dirname, '404.html'),
}
}
}
}
)