mirror of
https://github.com/johndoe6345789/workforce-pay-bill-p.git
synced 2026-04-24 13:24:57 +00:00
29 lines
743 B
TypeScript
29 lines
743 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import { defineConfig, PluginOption } from "vite";
|
|
|
|
import sparkPlugin from "@github/spark/spark-vite-plugin";
|
|
import createIconImportProxy from "@github/spark/vitePhosphorIconProxyPlugin";
|
|
import { resolve } from 'path'
|
|
|
|
const projectRoot = process.env.PROJECT_ROOT || import.meta.dirname
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
// DO NOT REMOVE
|
|
createIconImportProxy() as PluginOption,
|
|
sparkPlugin() as PluginOption,
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(projectRoot, 'src')
|
|
}
|
|
},
|
|
optimizeDeps: {
|
|
include: ['react-redux', '@reduxjs/toolkit']
|
|
},
|
|
});
|