2019-04-06 03:49:31 +11:00
|
|
|
|
2019-04-07 07:43:55 +10:00
|
|
|
const { productName } = require("./package.json")
|
2019-04-08 00:21:26 +10:00
|
|
|
const { appId, copyright } = require("./info.json")
|
2019-04-07 07:43:55 +10:00
|
|
|
|
2019-04-06 03:49:31 +11:00
|
|
|
module.exports = {
|
2019-04-07 07:43:55 +10:00
|
|
|
pages: {
|
|
|
|
index: {
|
|
|
|
entry: 'src/index/main.js',
|
|
|
|
template: 'public/index.html',
|
|
|
|
filename: 'index.html',
|
|
|
|
title: productName,
|
|
|
|
},
|
|
|
|
},
|
2019-04-06 03:49:31 +11:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
postcss: {
|
|
|
|
plugins: [
|
|
|
|
require('autoprefixer')({}),
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
pluginOptions: {
|
|
|
|
electronBuilder: {
|
|
|
|
builderOptions: {
|
2019-04-08 00:21:26 +10:00
|
|
|
appId: appId,
|
|
|
|
copyright: copyright,
|
2019-04-06 03:49:31 +11:00
|
|
|
win: {
|
|
|
|
"target": [
|
|
|
|
"nsis",
|
|
|
|
"portable",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
nsis: {
|
|
|
|
oneClick: false,
|
|
|
|
allowToChangeInstallationDirectory: true,
|
|
|
|
artifactName: "TheDesk-Vue-setup.${ext}",
|
|
|
|
},
|
|
|
|
linux: {
|
|
|
|
target: [
|
|
|
|
"snap",
|
|
|
|
],
|
|
|
|
category: "Network",
|
|
|
|
},
|
|
|
|
mac: {
|
|
|
|
target: [
|
|
|
|
"dmg",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|