Skip to content

Commit

Permalink
Fixed version and banner display (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
fboucquez authored Nov 2, 2020
1 parent e3d3fda commit 3effff2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ module.exports = {
lintOnSave: true,
// webpack
// see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
chainWebpack: config => {},
chainWebpack: (config) => {
config.plugin('define').tap((args) => {
const env = args[0]['process.env'];
args[0]['process.env'] = {
...env,
PACKAGE_VERSION: packageVersion,
WEB: web,
};
return args;
});
},
// generate map
productionSourceMap: true,
//use template in vue
Expand Down Expand Up @@ -66,8 +76,6 @@ module.exports = {
pluginOptions: {
"process.env": {
NODE_ENV: '"development"',
PACKAGE_VERSION: packageVersion,
WEB: web,
}
}
}

0 comments on commit 3effff2

Please sign in to comment.