forked from mydraft-cc/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
39 lines (36 loc) · 1.11 KB
/
vite.config.ts
File metadata and controls
39 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import path from 'path';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
import favicons from '@peterek/vite-plugin-favicons';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@app': path.resolve(__dirname, './src/'),
},
},
build: {
chunkSizeWarningLimit: 2000,
},
plugins: [
(process.env.NODE_ENV === 'production' ?
[
VitePWA({
injectRegister: null,
workbox: {
maximumFileSizeToCacheInBytes: 3_000_000,
}
}),
favicons('public/logo-square.svg', {
appName: 'mydraft',
appDescription: 'Open Source Wireframing Tool',
developerName: 'Sebastian Stehle',
developerURL: 'https://suquidex.io',
start_url: '/',
theme_color: '#fda100',
})
] : []),
react({}),
],
});