Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kingzez/version-log-webpack-plugin

Insert version log info to bundle code.
https://github.com/kingzez/version-log-webpack-plugin

Last synced: about 1 month ago
JSON representation

Insert version log info to bundle code.

Awesome Lists containing this project

README

        

# version-log-webpack-plugin

## Why use this
To confirm whether the latest version has been updated.

## Install

```bash
yarn add version-log-webpack-plugin --dev
```

## Webpack config

```js
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