-
Notifications
You must be signed in to change notification settings - Fork 14
/
vite.config.ts
37 lines (35 loc) · 793 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
32
33
34
35
36
37
import autoprefixer from 'autoprefixer'
import { defineConfig } from 'vite'
import checker from 'vite-plugin-checker'
// import basicSsl from '@vitejs/plugin-basic-ssl'
import { VitePWA as pwa } from 'vite-plugin-pwa'
import manifest from './manifest.json'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
checker({ typescript: true }),
pwa({
registerType: 'autoUpdate',
strategies: 'injectManifest',
srcDir: '',
filename: 'service-worker.ts',
base: './',
devOptions: {
enabled: false,
type: 'module',
webManifestUrl: 'manifest.json'
},
manifest
})
// basicSsl()
],
base: '',
server: {
host: true
},
css: {
postcss: {
plugins: [autoprefixer]
}
}
})