2022-06-17 12:36:21 +02:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
import ViteReact from '@vitejs/plugin-react';
|
|
|
|
import RubyPlugin from 'vite-plugin-ruby';
|
2024-03-04 16:35:09 +01:00
|
|
|
import FullReload from 'vite-plugin-full-reload';
|
2022-06-17 12:36:21 +02:00
|
|
|
|
2022-06-23 11:47:59 +02:00
|
|
|
const plugins = [
|
|
|
|
RubyPlugin(),
|
2023-05-04 14:01:35 +02:00
|
|
|
ViteReact({ jsxRuntime: 'classic' }),
|
2024-04-24 11:10:30 +02:00
|
|
|
FullReload(
|
|
|
|
['config/routes.rb', 'app/views/**/*', 'app/components/**/*.haml'],
|
|
|
|
{ delay: 200 }
|
|
|
|
)
|
2022-06-23 11:47:59 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
resolve: { alias: { '@utils': '/shared/utils.ts' } },
|
2024-05-30 22:18:57 +02:00
|
|
|
build: { sourcemap: true, assetsInlineLimit: 0 },
|
2022-06-23 11:47:59 +02:00
|
|
|
plugins
|
2022-06-17 12:36:21 +02:00
|
|
|
});
|