version-log-webpack-plugin
v1.0.5
Published
Insert version log info to bundle code.
Downloads
5
Maintainers
Readme
version-log-webpack-plugin
Why use this
To confirm whether the latest version has been updated.
Install
yarn add version-log-webpack-plugin --dev
Webpack config
const VersionLogPlugin = require('version-log-webpack-plugin')
// or
// const VersionLogPlugin = require('version-log-webpack-plugin').default
module.exports = {
// ...
plugins: [
new VersionLogWebpackPlugin({
version: `build-${Date.now()}` // anything what you want version info
})
]
}
after webpack build, then look your browser console.
LICENSE
MIT