1.0.1 • Published 7 years ago

add-text-to-bundle-plugin v1.0.1

Weekly downloads
21
License
MIT
Repository
github
Last release
7 years ago

在编译文件中添加文字

License NPM Contributors

webpack的插件,用于为编译后的文件添加字符串。

安装

npm i add-text-to-bundle-plugin --save-dev

使用

const AddText2BundlePlugin = require('add-text-to-bundle-plugin')

// webpack config
{
  plugins: [
    new AddText2BundlePlugin({
        text:"var i=0;"
    })
  ]
}

输出

var i=0;
/******/ (function(modules) { // webpackBootstrap
...
1.0.1

7 years ago

1.0.0

7 years ago