You can use the DefinePlugin that will make your build info available inlined with your code:
Config
new webpack.DefinePlugin({
__VERSION__: JSON.stringify('12345')
})
App code
console.log(__VERSION__);
You can use the DefinePlugin that will make your build info available inlined with your code:
Config
new webpack.DefinePlugin({
__VERSION__: JSON.stringify('12345')
})
App code
console.log(__VERSION__);