forked from bergkamp/video-comparison-player
/
vue.config.js
41 lines (39 loc) · 985 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
35
36
37
38
39
40
41
//https://www.electron.build/configuration/configuration
const webpack = require('webpack');
module.exports = {
configureWebpack: {
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
'process.env.FLUENTFFMPEG_COV': false
})
]
},
pluginOptions: {
electronBuilder: {
productName: "video-comparison-player",
nodeIntegration: true,
contextIsolation: false,
builderOptions: {
mac: {
icon: './src/icon/icon.icns',
},
win: {
icon: './src/icon/icon.png',
target: 'nsis'
},
nsis: {//https://www.electron.build/generated/nsisoptions
oneClick: false,
allowToChangeInstallationDirectory: true,
createDesktopShortcut: true
},
extraFiles: [
{
from: "node_modules/ffprobe-static-electron/bin/${os}/${arch}",
to: "static"
}
]
}
}
}
}