mirror of
https://github.com/luanslimadev/Wand-Enhancer.git
synced 2026-08-29 00:01:11 +00:00
35 lines
979 B
TypeScript
35 lines
979 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
base: './',
|
|
resolve: {
|
|
alias: [
|
|
{ find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) },
|
|
{ find: 'react-dom/client', replacement: 'preact/compat/client' },
|
|
{ find: 'react-dom', replacement: 'preact/compat' },
|
|
{ find: 'react/jsx-runtime', replacement: 'preact/jsx-runtime' },
|
|
{ find: 'react/jsx-dev-runtime', replacement: 'preact/jsx-dev-runtime' },
|
|
{ find: 'react', replacement: 'preact/compat' },
|
|
],
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: 4173,
|
|
strictPort: true,
|
|
},
|
|
preview: {
|
|
host: '127.0.0.1',
|
|
port: 4173,
|
|
strictPort: true,
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
assetsDir: 'assets',
|
|
target: 'es2020',
|
|
sourcemap: false,
|
|
},
|
|
}); |