thedesk/vue.config.js

60 lines
1.3 KiB
JavaScript
Raw Normal View History

2019-04-22 16:29:48 +10:00
const { productName, author } = require("./package.json");
const { appId, copyrightYear } = require("./info.json");
2019-04-07 07:43:55 +10:00
module.exports = {
2019-04-07 07:43:55 +10:00
pages: {
index: {
entry: 'src/entries/main.ts',
2019-04-07 07:43:55 +10:00
template: 'public/index.html',
title: productName,
},
2019-04-08 02:14:32 +10:00
about: {
entry: 'src/entries/about.ts',
2019-04-22 14:35:19 +10:00
title: 'About',
2019-04-08 02:14:32 +10:00
},
2019-04-07 07:43:55 +10:00
},
css: {
loaderOptions: {
postcss: {
plugins: [
2019-04-08 02:14:32 +10:00
require('postcss-nested')(),
require('autoprefixer')({}),
2019-04-08 02:14:32 +10:00
require('CSSWring')(),
],
},
},
},
pluginOptions: {
electronBuilder: {
2019-04-08 06:47:07 +10:00
disableMainProcessTypescript: false,
mainProcessTypeChecking: true,
builderOptions: {
appId: appId,
2019-04-22 16:29:48 +10:00
copyright: `Copyright © ${copyrightYear} ${author.name}`,
win: {
"target": [
"nsis",
"portable",
],
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
artifactName: "TheDesk-Vue-setup.${ext}",
},
linux: {
target: [
"snap",
],
category: "Network",
},
mac: {
2019-04-10 20:33:59 +10:00
darkModeSupport: true,
target: [
"dmg",
],
},
},
},
},
2019-04-22 14:35:19 +10:00
};