thedesk/vue.config.js
2019-04-10 16:27:19 +09:00

61 lines
1.2 KiB
JavaScript

const { productName } = require("./package.json")
const { appId, copyright } = require("./info.json")
module.exports = {
pages: {
index: {
entry: 'src/entries/main.ts',
template: 'public/index.html',
title: productName,
},
about: {
entry: 'src/entries/about.ts',
title: `About`,
},
},
css: {
loaderOptions: {
postcss: {
plugins: [
require('postcss-nested')(),
require('autoprefixer')({}),
require('CSSWring')(),
],
},
},
},
pluginOptions: {
electronBuilder: {
disableMainProcessTypescript: false,
mainProcessTypeChecking: true,
builderOptions: {
appId: appId,
copyright: copyright,
win: {
"target": [
"nsis",
"portable",
],
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
artifactName: "TheDesk-Vue-setup.${ext}",
},
linux: {
target: [
"snap",
],
category: "Network",
},
mac: {
target: [
"dmg",
],
},
},
},
},
}