-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
43 lines (42 loc) · 813 Bytes
/
vite.config.js
File metadata and controls
43 lines (42 loc) · 813 Bytes
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
40
41
42
43
import vue from '@vitejs/plugin-vue';
import eslint from '@rollup/plugin-eslint';
import path from 'path';
import { VitePWA } from 'vite-plugin-pwa';
/**
* @type {import('vite').UserConfig}
*/
export default {
plugins: [
vue(),
VitePWA({
manifest: {
// content of manifest
},
workbox: {
// workbox options for generateSW
},
}),
{
...eslint({
include: ['./src/**/*.vue', './src/**/*.js'],
}),
enforce: 'pre',
},
],
resolve: {
alias: {
'~': path.resolve(__dirname, './src'),
},
},
build: {
rollupOptions: {
output: {
manualChunks: {
'highlight.js': ['highlight.js'],
codemirror: ['codemirror'],
showdown: ['showdown'],
},
},
},
},
};