@stacker/webpack-replace-plugin

1.0.2 • Public • Published

webpack-replace-plugin

使用

const {ReplacePlugin} = require('@stacker/webpack-replace-plugin');

new ReplacePlugin({
  replaceQueue: [{
    reg: /(?<!\.)1991421\.cn/g,
    value: 'window.baseHost',
  }]
})

Readme

Keywords

none

Package Sidebar

Install

npm i @stacker/webpack-replace-plugin

Weekly Downloads

6

Version

1.0.2

License

ISC

Unpacked Size

4.3 kB

Total Files

5

Last publish

Collaborators

  • stacker2