-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvue.config.js
More file actions
98 lines (95 loc) · 2.33 KB
/
Copy pathvue.config.js
File metadata and controls
98 lines (95 loc) · 2.33 KB
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
// vue.config.js
/*
{
test: /\.wasm$/,
loader: 'file-loader',
type: "javascript/auto"
},
{
test: /\.dump.gz$/,
loader: 'file-loader',
type: "javascript/auto"
},*/
module.exports = {
pluginOptions: {
electronBuilder: {
// Chain webpack config for electron main process only
chainWebpackMainProcess: (config) => {
config.module
.rule('dump.gz')
.test(/\.dump.gz$/)
.use('file-loader')
.loader('file-loader')
.end();
config.module
.rule('wasm')
.test(/\.wasm$/)
.type('javascript/auto')
.use('file-loader')
.loader('file-loader')
.end();
config.module
.rule('cls')
.test(/\.cls$/)
.use('file-loader')
.loader('file-loader')
.end();
config.module
.rule('mp3')
.test(/\.mp3$/)
.use('file-loader')
.loader('file-loader')
.end();
//const wasmRule = config.module.rule('wasm');
//wasmRule.uses.clear();
// add replacement loader(s)
//wasmRule
//.use('file-loader')
//.loader('file-loader')
//.end();
},
builderOptions: {
// options placed here will be merged with default configuration and passed to electron-builder
extraResources: [
{
from: './tex/',
to: 'tex',
filter: [
'**/*',
],
},
],
appId: 'org.rossprogram.circle-z',
copyright: 'Copyright © 2020, Jim Fowler.',
productName: 'Circle Z',
publish: 'github',
mac: {
category: 'public.app-category.education',
icon: 'build/icons/icon.icns',
},
dmg: {
background: 'build/background.png',
contents: [
{
x: 135,
y: 222,
},
{
x: 405,
y: 222,
type: 'link',
path: '/Applications',
},
],
},
appImage: {
license: 'LICENSE',
},
nsis: {
createDesktopShortcut: 'always',
license: 'LICENSE',
},
},
},
},
};