version-webpack-plugin
v0.1.8
Published
webpack plugin for version
Downloads
3
Maintainers
Readme
version-webpack-plugin
install
npm run install version-webpack-plugin --save-dev
use
enable:插件是否可用。默认为false
options:{enable:Boolean}
webpack 配置文件中引入插件
const sVersionPlugin = require('version-webpack-plugin')
plugins: [
new sVersionPlugin({
enable: true // 根据环境动态修改可用性
})
]
eg
- 每次打包会生成新的递增的版本号,可在控制台查看
- 页面效果,单击icon展示版本,点击其他区域关闭