thedesk/vue.config.js
2019-04-08 01:25:39 +09:00

60 lines
1.1 KiB
JavaScript

const { productName } = require("./package.json")
const { appId, copyright } = require("./info.json")
module.exports = {
pages: {
index: {
entry: 'src/index/main.js',
template: 'public/index.html',
title: productName,
},
about: {
entry: 'src/about/main.js',
template: 'public/index.html',
title: `About`,
},
},
css: {
loaderOptions: {
postcss: {
plugins: [
require('postcss-nested')(),
require('autoprefixer')({}),
require('CSSWring')(),
],
},
},
},
pluginOptions: {
electronBuilder: {
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",
],
},
},
},
},
}