WebTools-NG/vue.config.js

62 lines
1.4 KiB
JavaScript
Raw Normal View History

2020-08-19 12:12:04 +00:00
process.env.VUE_APP_VERSION = process.env.npm_package_version;
2020-05-16 20:52:50 +00:00
module.exports = {
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: false
2020-06-08 13:40:41 +00:00
},
electronBuilder: {
2022-01-01 21:15:20 +00:00
builderOptions: {
2022-04-11 12:29:54 +00:00
appId: "com.webtools.webtools-ng",
2020-10-18 14:44:18 +00:00
artifactName: "${productName}-${version}.${env.AppRev}.${ext}",
directories: {
"buildResources": "src/assets"
2022-01-01 21:15:20 +00:00
},
2020-06-08 13:40:41 +00:00
"extraResources": [
{
"from": "./public/locales",
"to": "locales"
},
{
2020-10-16 22:40:27 +00:00
"from": "./public/version.json",
"to": "version.json"
2020-06-08 13:40:41 +00:00
}
],
2020-08-24 11:21:06 +00:00
linux: {
2020-08-24 11:40:34 +00:00
category: "Utility",
2020-10-18 14:44:18 +00:00
icon: './src/assets/WebTools-512.png',
2021-11-07 00:09:55 +00:00
target: 'AppImage'
2020-08-24 11:21:06 +00:00
},
win: {
2020-10-18 14:44:18 +00:00
icon: './src/assets/WebTools-512.png'
2020-10-18 13:48:39 +00:00
},
2020-10-18 14:44:18 +00:00
mac: {
2020-10-18 23:32:16 +00:00
icon: './src/assets/WebTools-512.icns',
target: 'dmg'
2022-01-01 21:15:20 +00:00
},
"nsis": {
"differentialPackage": false
},
"dmg": {
"writeUpdateInfo": false
2020-10-18 13:48:39 +00:00
}
2020-06-08 13:40:41 +00:00
}
2020-05-16 20:52:50 +00:00
}
}
}
2022-04-11 12:29:54 +00:00
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => {
options.compilerOptions.preserveWhitespace = true
return options
})
}