0.1.9 • Published 2 years ago

build-record-webpack-plugin v0.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

build-record-webpack-plugin

install

npm install build-record-webpack-plugin -D

webpack 使用方式

  • Enable plugin in your webpack.base.js file:
const BuildRecordWebpackPlugin = require('build-record-webpack-plugin')   
module.exports = {
    plugins: [
            new BuildRecordWebpackPlugin({
                assets: true, // 开启生成版本文件在构建完成的根目录
                BuildInfo(info) {
                    console.log(info);  // 构建过程中的信息
                }
            }),
        	...
        ]
}
  • If using vue-cli
const BuildRecordWebpackPlugin = require('build-record-webpack-plugin')  
configureWebpack: config => {
     config.plugins = [ 
         new BuildRecordWebpackPlugin({
            assets: true, // 开启生成版本文件在构建完成的根目录
            BuildInfo(info) {
                console.log(info);  // 构建过程中的信息
            }
        }),
     	...]
 }
{ 
      SpecificationVersion: '15315881……',  // git hash
      SpecificationTitle: 'project-name',  // 工程名称
      Timeofbuild: '07071436',             // 打包日期
      argvofbuild: 'build',			       // 打包参数
      CreatedBy: 'Administrator'           // 打包环境
}
0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago