mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-22 02:53:05 +00:00
60 lines
1.3 KiB
JavaScript
60 lines
1.3 KiB
JavaScript
process.env.VUE_APP_VERSION = process.env.npm_package_version;
|
|
|
|
module.exports = {
|
|
pluginOptions: {
|
|
i18n: {
|
|
locale: 'en',
|
|
fallbackLocale: 'en',
|
|
localeDir: 'locales',
|
|
enableInSFC: false
|
|
},
|
|
electronBuilder: {
|
|
builderOptions: {
|
|
appId: "com.webtools.webtools-ng",
|
|
artifactName: "${productName}-${version}.${env.AppRev}.${ext}",
|
|
directories: {
|
|
"buildResources": "src/assets"
|
|
},
|
|
"extraResources": [
|
|
{
|
|
"from": "./public/locales",
|
|
"to": "locales"
|
|
},
|
|
{
|
|
"from": "./public/version.json",
|
|
"to": "version.json"
|
|
}
|
|
],
|
|
linux: {
|
|
category: "Utility",
|
|
icon: './src/assets/WebTools-512.png',
|
|
target: 'AppImage'
|
|
},
|
|
win: {
|
|
icon: './src/assets/WebTools-512.png'
|
|
},
|
|
mac: {
|
|
icon: './src/assets/WebTools-512.icns',
|
|
target: 'dmg'
|
|
},
|
|
"nsis": {
|
|
"differentialPackage": false
|
|
},
|
|
"dmg": {
|
|
"writeUpdateInfo": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
config => {
|
|
config.module
|
|
.rule('vue')
|
|
.use('vue-loader')
|
|
.loader('vue-loader')
|
|
.tap(options => {
|
|
options.compilerOptions.preserveWhitespace = true
|
|
return options
|
|
})
|
|
}
|