@wxa/plugin-replace

2.4.1 • Public • Published

😊😊😊😊Documentation

wxa-plugin-replace

NPM version

🎉replace string in wxa

Usage

add replace target

    new ReplacePlugin({
      list: [{
        regular: new RegExp('APP_ENV', 'gm'),
        value: 'bcds'
      }]
    })

object configs

    new ReplacePlugin({
      list: {
        'APP_ENV': 'bcds'
      }
    })

Configurations

  • list

    • type: {Object, Array} list
    • default: []
    • tip: an array or object to replace in wxa project
  • flag

    • type: {String} flag
    • flag: gm
    • tip: regular express's flag.

Readme

Keywords

Package Sidebar

Install

npm i @wxa/plugin-replace

Weekly Downloads

1

Version

2.4.1

License

MIT

Unpacked Size

5.38 kB

Total Files

5

Last publish

Collaborators

  • genuifx
  • zehuiguan
  • lucaszhu
  • fanniehuang
  • baoooooo