-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
31 lines (28 loc) · 870 Bytes
/
vite.config.ts
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
/// <reference types="vitest" />
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import solid from 'vite-plugin-solid'
import path from "path"
export default defineConfig({
plugins: [
solid(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{svg,woff2,woff,js,css,html,json}']
}
})
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@assets': path.resolve(__dirname, './src/assets'),
'@composables': path.resolve(__dirname, './src/composables'),
'@components': path.resolve(__dirname, './src/components'),
'@data': path.resolve(__dirname, './src/data'),
'@stores': path.resolve(__dirname, './src/stores'),
'@scss': path.resolve(__dirname, './src/scss')
},
conditions: ['development', 'browser'],
}
})