publish-info-webpack-plugin

1.1.1 • Public • Published

publish-info-webpack-plugin

build 后为 dist 包添加发布时间、分支等信息方便查看版本情况

Installation

需要安装依赖包shelljs

  npm i shelljs -D
  yarn add shelljs -D
  pnpm add shelljs -D

Usage

  // for example
  module.exports = {
    plugins: [
      new PublishWebpackPlugin({
        outPath: resolve(__dirname, '../dist/index.html') // 指定打包后(output 指定的输出路径)输出html的路径
      })
    ],
  }

Readme

Keywords

none

Package Sidebar

Install

npm i publish-info-webpack-plugin

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

9.21 kB

Total Files

4

Last publish

Collaborators

  • huangdong1931