mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 03:23:05 +00:00
35 lines
793 B
JavaScript
35 lines
793 B
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: {
|
|
"extraResources": [
|
|
{
|
|
"from": "./public/locales",
|
|
"to": "locales"
|
|
}
|
|
],
|
|
"linux": {
|
|
"category": "Utility"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// ,
|
|
// chainWebpack: config => {
|
|
// config
|
|
// .plugin('html')
|
|
// .tap(args => {
|
|
// let v = JSON.stringify(require('./package.json').version)
|
|
// args[0]['process.env']['VERSION'] = v
|
|
// return args;
|
|
// })
|
|
// }
|
|
}
|