-
Notifications
You must be signed in to change notification settings - Fork 9
/
vue.config.js
45 lines (44 loc) · 1.09 KB
/
vue.config.js
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
44
45
const WorkerPlugin = require('worker-plugin');
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'https://xk.shuosc.com',
changeOrigin: true,
},
},
},
configureWebpack: {
plugins: [
new WorkerPlugin({
globalObject: 'self',
}),
],
},
pages: {
index: {
entry: 'src/pages/index/main.js',
template: 'public/index.html',
filename: 'index.html',
chunks: ['chunk-vendors', 'chunk-common', 'index'],
},
m: {
entry: 'src/pages/m/main.js',
template: 'public/m.html',
filename: 'm.html',
chunks: ['chunk-vendors', 'chunk-common', 'm'],
},
'quick-inputting': {
entry: 'src/pages/quick-inputting/main.js',
template: 'public/quick-inputting.html',
filename: 'quick-inputting.html',
chunks: ['chunk-vendors', 'chunk-common', 'quick-inputting'],
},
redirect: {
entry: 'src/pages/redirect/main.js',
template: 'public/redirect.html',
filename: 'redirect.html',
chunks: ['chunk-vendors', 'chunk-common', 'redirect'],
},
},
};