refactor: theme from lovable
This commit is contained in:
21
wp-content/themes/cascapedia-st-jules/vite.config.ts
Normal file
21
wp-content/themes/cascapedia-st-jules/vite.config.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react-swc';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
base: '/wp-content/themes/cascapedia-st-jules/assets/dist/',
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './assets/src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
manifest: true,
|
||||
outDir: 'assets/dist',
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
input: 'assets/src/main.tsx',
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user