pswui/packages/react/vite.config.ts
2024-06-01 02:43:03 +09:00

23 lines
568 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "tailwindcss";
import mdx from '@mdx-js/rollup';
import { resolve } from 'node:path';
import rehypeHighlight from "rehype-highlight";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), mdx({ rehypePlugins: [rehypeHighlight] })],
css: {
postcss: {
plugins: [tailwindcss()],
},
},
resolve: {
alias: {
'@components': resolve(__dirname, './components'),
'@': resolve(__dirname, './src'),
}
}
});