-
Notifications
You must be signed in to change notification settings - Fork 6
/
vue.config.js
75 lines (72 loc) · 1.82 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
const path = require('path');
const bundleEnvName = 'WATERPROOF_BUILD_WITH_BUNDLED_INSTALLER';
let nsisConfig = undefined;
if (process.env[bundleEnvName] === 'true') {
nsisConfig = {
include: 'wrapper/windows-installer.nsh',
allowElevation: true,
oneClick: false,
perMachine: true,
artifactName: '${productName} and Coq Setup ${version}.${ext}',
};
}
module.exports = {
chainWebpack: (config) => {
// config.plugins.delete('preload-index');
// config.plugins.delete('prefetch-index');
// config.plugins.delete('preload-editpage');
// config.plugins.delete('prefetch-editpage');
config.plugins.delete('hmr');
},
configureWebpack: {
module: {
rules: [{
test: /\.scss$/,
use: [
'sass-loader',
{
loader: 'style-resources-loader',
options: {
patterns: [
path.resolve(__dirname,
'src/assets/sass/abstracts/*.scss'),
],
},
},
],
}],
},
},
pluginOptions: {
electronBuilder: {
// Sandboxing interferes with running the app on the GitLab runners.
mainProcessArgs: ['--no-sandbox'],
nodeIntegration: true,
builderOptions: {
productName: 'Waterproof',
remoteBuild: true,
extraFiles: ['wrapper/assistance', 'wrapper/wplib'],
win: {
extraFiles: ['wrapper/win'],
},
mac: {
extraFiles: ['wrapper/mac'],
},
linux: {
extraFiles: ['wrapper/lin'],
},
fileAssociations: [
{
ext: 'wpn',
name: 'Waterproof notebook',
},
{
ext: 'wpe',
name: 'Waterproof exercise',
},
],
nsis: nsisConfig,
},
},
},
};