1.0.21 • Published 6 months ago

webpack-branch-console-plugin v1.0.21

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

说明

自动在项目开头输出当前 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默认值作用
nametrue是否输出仓库名/项目名
timetrue是否输出打包时间
hashtrue是否输出主入口文件的 hash 值
branchNametrue是否输出分支名
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