We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84cd880 commit f91a262Copy full SHA for f91a262
frontend/package.json
@@ -36,6 +36,7 @@
36
"scripts": {
37
"start": "vite",
38
"build": "vite build",
39
+ "dev-build": "vite build --mode development",
40
"preview": "vite preview"
41
},
42
"eslintConfig": {
frontend/vite.config.mjs
@@ -1,9 +1,13 @@
1
import { defineConfig } from 'vite';
2
import react from '@vitejs/plugin-react';
3
4
-export default defineConfig({
+export default defineConfig(({ mode }) => ({
5
plugins: [react()],
6
optimizeDeps: {
7
include: ['@emotion/styled', '@emotion/react'],
8
9
-});
+ build: {
10
+ minify: mode === 'production',
11
+ sourcemap: mode !== 'production',
12
+ },
13
+}));
0 commit comments