This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vue.config.js
81 lines (70 loc) · 1.58 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
const DefinePlugin = require("webpack").DefinePlugin;
module.exports = {
configureWebpack: {
module: {
rules: [
{
test: /\.(glsl|vert|frag|fs|vs)$/,
loader: "text-loader"
}
]
},
serve: {
hot: true,
// hotOnly: true,
contentBase: "./"
},
node: {
__dirname: process.env.NODE_ENV !== "production",
__filename: process.env.NODE_ENV !== "production"
}
},
pluginOptions: {
electronBuilder: {
externals: [
"!color",
"!lodash.clonedeep",
"!lodash.get",
"!events",
"!debug",
"!assert",
"fluent-ffmpeg",
"animated-gif-detector",
"ospath",
"stream-to-blob",
"grandiose",
"npm",
"webpack-2"
],
builderOptions: {
appId: "gl.vcync.modv",
productName: "modV",
linux: {
category: "Graphics"
}
},
chainWebpackMainProcess: config => {
config.module
.rule("nodeloader")
.test(/\.node$/)
.use("nodeloader")
.loader("node-loader");
config
.plugin("define")
.use(DefinePlugin, [{ "process.env.FLUENTFFMPEG_COV": false }]);
},
chainWebpackRendererProcess: config => {
config.plugin("define").use(DefinePlugin, [
{
"process.env": {
NODE_ENV: '"production"',
BASE_URL: "`app://./`",
IS_ELECTRON: true
}
}
]);
return config;
}
}
}
};