1.0.21 • Published 6 months ago
webpack-branch-console-plugin v1.0.21
说明
自动在项目开头输出当前 git 仓库名或 package.js 名称和当前分支名称
使用
下载
yarn add webpack-branch-console-plugin -D
添加插件(以 vue-cli 为例)
// vue.config.js
const WebpackBranchConsolePlugin = require("webpack-branch-console-plugin");
module.exports = {
configureWebpack: (config) => {
config.plugins.push(
new WebpackBranchConsolePlugin({
name: true,
time: true,
hash: true,
branchName: true,
})
);
},
};
参数
初始化时接收options
参数, 可以不传
options | 默认值 | 作用 |
---|---|---|
name | true | 是否输出仓库名/项目名 |
time | true | 是否输出打包时间 |
hash | true | 是否输出主入口文件的 hash 值 |
branchName | true | 是否输出分支名 |
1.0.19
7 months ago
1.0.18
7 months ago
1.0.21
6 months ago
1.0.20
7 months ago
1.0.17
9 months ago
1.0.16
10 months ago
1.0.11
10 months ago
1.0.15
10 months ago
1.0.14
10 months ago
1.0.13
10 months ago
1.0.12
10 months ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago