wmlgl-webpack-dist-replace-plugin

1.0.2-b3 • Public • Published

webpack-dist-replace-plugin

replace your webpack dist content.

Install

npm install wmlgl-webpack-dist-replace-plugin --save-dev

Usage

const DistReplacePlugin = require('wmlgl-webpack-dist-replace-plugin');

module.exports = {
    
    plugins: [
        new DistReplacePlugin({
			test: /[.]js$/,
            replace: content => content.replace('hello','world')
        })
    ],

    ......
}

Package Sidebar

Install

npm i wmlgl-webpack-dist-replace-plugin

Weekly Downloads

5

Version

1.0.2-b3

License

none

Unpacked Size

4.64 kB

Total Files

3

Last publish

Collaborators

  • wmlgl