2026-04-10 21:06:22 +02:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
import symfonyPlugin from 'vite-plugin-symfony';
|
2026-04-10 21:53:50 +02:00
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
|
import { dirname, resolve } from 'path';
|
|
|
|
|
|
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
2026-04-10 21:06:22 +02:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [
|
|
|
|
|
react(),
|
|
|
|
|
symfonyPlugin({ refresh: true }),
|
|
|
|
|
],
|
2026-04-10 21:53:50 +02:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@mine-components': resolve(__dirname, './assets/js/mine-seeker/components'),
|
|
|
|
|
'@mine-contexts': resolve(__dirname, './assets/js/mine-seeker/contexts'),
|
|
|
|
|
'@mine-hooks': resolve(__dirname, './assets/js/mine-seeker/hooks'),
|
|
|
|
|
'@mine-utils': resolve(__dirname, './assets/js/mine-seeker/utils'),
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-04-10 21:06:22 +02:00
|
|
|
build: {
|
|
|
|
|
rollupOptions: {
|
|
|
|
|
input: {
|
|
|
|
|
mineseeker: './assets/js/app.jsx',
|
|
|
|
|
mineseekerStyle: './assets/css/style.mineseeker.scss',
|
|
|
|
|
homeStyle: './assets/css/style.layout.scss',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
css: {
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
scss: {
|
|
|
|
|
api: 'modern',
|
|
|
|
|
silenceDeprecations: ['import'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|