-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
117 lines (115 loc) · 3.2 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
const webpack = require("webpack")
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin
const path = require("path")
module.exports = {
pages: {
login: {
entry: "client/login.ts",
template: "public/login.html",
filename: "login.html",
title: "Login Page",
chunks: ["chunk-vendors", "chunk-common", "login"],
},
register: {
entry: "client/register/register.ts",
template: "public/register.html",
filename: "register.html",
title: "ユーザー登録",
chunks: ["chunk-vendors", "chunk-common", "register"],
},
index: {
entry: "client/index.ts",
template: "public/index.html",
filename: "index.html",
title: "ホーム - バーチャルポスター",
chunks: ["chunk-vendors", "chunk-common", "index"],
},
room: {
entry: "client/room/room.ts",
template: "public/room.html",
filename: "room.html",
title: "Main Room Page",
chunks: ["chunk-vendors", "chunk-common", "room"],
},
create_room: {
entry: "client/create_room.ts",
template: "public/create_room.html",
filename: "create_room.html",
title: "Create room",
chunks: ["chunk-vendors", "chunk-common", "create_room"],
},
poster_list: {
entry: "client/poster_list.ts",
template: "public/poster_list.html",
filename: "poster_list.html",
title: "Poster List Page",
chunks: ["chunk-vendors", "chunk-common", "poster_list"],
},
admin: {
entry: "client/admin/admin.ts",
template: "public/admin.html",
filename: "admin.html",
title: "Admin Page",
chunks: ["chunk-vendors", "chunk-common", "admin"],
},
mypage: {
entry: "client/mypage/mypage.ts",
template: "public/mypage.html",
filename: "mypage.html",
title: "マイページ",
chunks: ["chunk-vendors", "chunk-common", "mypage"],
},
},
productionSourceMap: false,
configureWebpack: {
plugins: [
new webpack.IgnorePlugin(/^\.\/wordlists\/(?!english)/, /bip39\/src$/),
].concat(
process.env.ANALYZE_BUNDLE
? new BundleAnalyzerPlugin({
analyzerMode: "static",
reportFilename: path.join(__dirname, "./stats_app.html"),
defaultSizes: "gzip",
openAnalyzer: false,
generateStatsFile: true,
statsFilename: path.join(__dirname, "./stats_app.json"),
statsOptions: null,
logLevel: "info",
})
: []
),
resolve: {
alias: {
// "@/*": "./*",
"@": path.resolve(__dirname),
},
},
externals: ["dtrace-provider"],
},
devServer: {
proxy: {
"^/api": {
target: "http://localhost:3000",
ws: true,
secure: false,
},
// "^/ws": {
// target: "http://localhost:5000",
// ws: true,
// secure: false,
// },
"^/socket.io": {
target: "http://localhost:5000",
ws: true,
secure: false,
},
"^/img": {
target: "http://localhost:3000",
ws: false,
secure: false,
},
},
// headers: { "Cache-Control": "no-store" },
},
}