webpack-build-banner

0.0.3 • Public • Published

安装:

npm i webpack-build-banner

使用:

const BannerWebpackPlugin =  require('webpack-build-banner')

module.exports= {
    ...
    plugins: [
        new BannerWebpackPlugin({
            author: '章旭东',
            email: '2269983609@qq.com',
            extensions:['js'] // 处理哪些类型的文件 js || css
        })
    ]
    ...
}

处理效果:

/**
 *	Author: 章旭东
 *	Date: 2024-01-25 13:52:03
 *	Email: 2269983609@qq.com
 */
!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define([],t):"object"==typeofexports?exports.WebpackBuildBanner=t():e.WebpackBuildBanner=t()}(globalThis,(()=>{returne={138:(e,t,o)=>{consts=o(632);e.exports=class{constructor(e={}){this.options=e}apply(e,t){e.hooks.emit.tap("BannerWebpackPlugin",(e=>{const ...

Readme

Keywords

none

Package Sidebar

Install

npm i webpack-build-banner

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

6.04 kB

Total Files

8

Last publish

Collaborators

  • xudongzhang