WebTools-NG/vue.config.js

36 lines
793 B
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: {
builderOptions: {
"extraResources": [
{
"from": "./public/locales",
"to": "locales"
}
],
"linux": {
"category": "Utility"
2020-08-19 12:12:04 +00:00
}
2020-06-08 13:40:41 +00:00
}
2020-05-16 20:52:50 +00:00
}
}
2020-08-19 12:12:04 +00:00
// ,
// chainWebpack: config => {
// config
// .plugin('html')
// .tap(args => {
// let v = JSON.stringify(require('./package.json').version)
// args[0]['process.env']['VERSION'] = v
// return args;
// })
// }
2020-05-16 20:52:50 +00:00
}