Fixes #292 Display version number

This commit is contained in:
Joseph Earl
2017-04-15 01:35:08 +01:00
committed by David Calavera
parent e66b3597ef
commit 22137ed777
3 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,9 @@ module.exports = merge.smart(require('./webpack.base.js'), {
NODE_ENV: JSON.stringify('development'),
},
}),
new webpack.DefinePlugin({
NETLIFY_CMS_VERSION: JSON.stringify(require("./package.json").version + "-dev")
}),
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),