@yqg/webpack-version-plugin

0.0.1 • Public • Published

@yqg/webpack-version-plugin

Adds a json file to your webpack build with the webpack hash and time.

This can be used to help single page apps detect a new version.

Usage

new WebpackVersionHashPlugin(options)

Default options:

{
  filename: 'version.json'
}

Output

{
  "version": "44c56d816a031ada87401d28a1339b9a",
  "date": "2018-06-26T12:07:16.683Z"
}

Dependents (0)

Package Sidebar

Install

npm i @yqg/webpack-version-plugin

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

1.78 kB

Total Files

3

Last publish

Collaborators

  • devmsg
  • hongweihu
  • iuwoo
  • ykboluo
  • yqg-owner
  • jxlnljt
  • yulodl
  • center620
  • zhchy
  • guxiaodai
  • northseacoder
  • wenxiujiang
  • zzj5470816
  • lixiaoxue
  • yyh_
  • szll
  • zhayoyang