Sign In

record-build-info-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

record-build-info-plugin

生一个record-build-info.json文件,包含项目基础信息(版本,分支,最新提交ID,打包时间)

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
4
-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

record-build-info-plugin

install

npm install record-build-info-plugin -D
yarn iadd record-build-info-plugin -D
pnpm install record-build-info-plugin -D

webpack 使用方式

  • Enable plugin in your webpack.base.js file:

const RecordBuildInfoPlugin = require('record-build-info-plugin')
module.exports = {
    plugins: [
            new RecordBuildInfoPlugin('dist')
        	...
        ]
}
  • If using vue-cli
const RecordBuildInfoPlugin = require('record-build-info-plugin')  
configureWebpack: config => {
     config.plugins = [ 
         new RecordBuildInfoPlugin('dist'),
     	...]
 }
{ 
      barnch: 'build',             // 分支
      buildTime: '',			       // 打包时间
      gitLast: 'Administrator'           // 最后提交的记录
}

FAQs

Package last updated on 23 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts