forked from hoobs-org/portal
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
34 lines (28 loc) · 887 Bytes
/
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
const { resolve, join } = require("path");
module.exports = {
outputDir: resolve(__dirname, "./interface"),
configureWebpack: {
performance: {
hints: false,
},
optimization: {
runtimeChunk: "single",
splitChunks: {
chunks: "all",
maxInitialRequests: Infinity,
minSize: 0,
maxSize: 10000,
},
},
},
chainWebpack: (config) => {
config.performance.maxEntrypointSize(400000).maxAssetSize(400000);
config.entry("app").clear().add("./source/main.js").end();
config.resolve.alias.set("@", join(__dirname, "./source"));
config.plugin("html").tap((args) => {
const payload = args;
payload[0].title = "Homebridge WiFi Setup";
return payload;
});
},
};