-
Notifications
You must be signed in to change notification settings - Fork 24
/
vue.config.js
52 lines (50 loc) · 1.24 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
const path = require('path');
const WebpackBar = require('webpackbar');
const mainDir = (...args) => path.join(__dirname, 'src', 'main', ...args);
const rendererDir = (...args) =>
path.join(__dirname, 'src', 'renderer', ...args);
module.exports = {
devServer: {
progress: false
},
configureWebpack: {
resolve: {
alias: {
'@vue': rendererDir('components'),
'@img': rendererDir('assets', 'images'),
'@icon': rendererDir('assets', 'icons'),
'@scss': rendererDir('assets', 'styles'),
'@fonts': rendererDir('assets', 'fonts')
}
},
plugins: [
new WebpackBar({
name: 'Building FLB Music Player',
color: '#0389ff'
})
]
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
productName: 'FLB Music',
appId: 'com.flb.flbmusic',
productName: 'FLB Music',
copyright: 'MIT',
publish: [
{
provider: 'github',
owner: 'FLB-Music',
repo: 'FLB-Music-Player'
}
],
snap: {
title: 'FLB Music',
summary: 'A Beautiful and Feature Rich Music Player',
grade: 'stable'
}
}
}
}
};