Add: Version property

This commit is contained in:
surunzi
2017-09-27 15:35:52 +08:00
parent bbb69208c7
commit 1647df1378
3 changed files with 8 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ module.exports = {
]
},
plugins: [
new webpack.BannerPlugin(banner)
new webpack.BannerPlugin(banner),
new webpack.DefinePlugin({
VERSION: '\'' + pkg.version + '\''
})
]
};