2023-10-07 15:32:11 +00:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import react from '@vitejs/plugin-react'
|
2023-10-07 16:12:27 +00:00
|
|
|
import scopeTailwind from "vite-plugin-scope-tailwind";
|
2023-10-07 15:32:11 +00:00
|
|
|
import { resolve } from 'path'
|
|
|
|
// import reactTailwindClassnamePrefixer from "./lib/vite-plugin-react-classname-prefixer";
|
|
|
|
import svgr from "vite-plugin-svgr";
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-10-07 16:12:27 +00:00
|
|
|
plugins: [svgr(), react(), scopeTailwind({react: true})],
|
2023-10-07 15:32:11 +00:00
|
|
|
resolve: {
|
2023-10-07 16:12:27 +00:00
|
|
|
// I have no clue why aliases are not working at all...
|
2023-10-07 15:32:11 +00:00
|
|
|
alias: {
|
2023-10-07 16:12:27 +00:00
|
|
|
'@styles/': resolve(__dirname, './styles'),
|
|
|
|
'@components/': resolve(__dirname, './src/components'),
|
|
|
|
'@assets/': resolve(__dirname, './src/assets'),
|
|
|
|
'@': resolve(__dirname, './src'),
|
2023-10-07 15:32:11 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|