code refactoring

This commit is contained in:
2022-06-13 15:30:05 +02:00
parent 25dee4921b
commit c0982d7098
10 changed files with 81 additions and 71 deletions

View File

@@ -1,17 +1,18 @@
import ViteYaml from '@modyfi/vite-plugin-yaml';
import react from "@vitejs/plugin-react";
import ViteYaml from '@modyfi/vite-plugin-yaml';
import { defineConfig } from 'vite';
import { resolve } from 'path';
const config = {
plugins: [
ViteYaml(),
react(),
],
root: './frontend',
build: {
emptyOutDir: true,
outDir: resolve(__dirname, 'dist', 'frontend'),
export default defineConfig(() => {
return {
plugins: [
react(),
ViteYaml(),
],
root: resolve(__dirname, 'frontend'),
build: {
emptyOutDir: true,
outDir: resolve(__dirname, 'dist', 'frontend'),
}
}
}
export default config
})