use version from package.json
This commit is contained in:
parent
d291e8152b
commit
d962c7fa02
2 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,8 @@
|
|||
*/
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const package = require('../package.json');
|
||||
|
||||
function resolve (dir) {
|
||||
return path.join(__dirname, '..', dir);
|
||||
}
|
||||
|
@ -66,6 +68,9 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
plugins: [
|
||||
new webpack.optimize.ModuleConcatenationPlugin()
|
||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.VERSION': `'${package.version}'`
|
||||
}),
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue