0.0.6 • Published 9 months ago

@gzz-test/version-webpack-plugin v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

html 追加版本号

options

参数说明类型默认值
pathhtml 路径stringdist/index.html
version版本号stringversion in pakcage.json
suffixversion 后缀ISuffixOptions{ datetimeHuman: true, timestamp: true }
callbackcustom full VersinNameFunction

require

version-webpack-plugin require Node.js 16 or newer

install

npm i @drumup/version-webpack-plugin -D

demo

const VersionWebpackPlugin = require("@drumup/version-webpack-plugin")

new VersionWebpackPlugin({
  path: 'dist/index.html'
  version: "",
  suffix: {
    date: false,
    time: false,
    timestamp: true,
  },
  callback: () => {
    return 'custome_version_info_by_callback'
  }
})

dist/index.html

<!DOCTYPE html><html><head><meta name="version" content="custome_version_info_by_callback"><title>@gzz-kit/version-webpack-plugin</title>...
0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago