@wxa/plugin-replace

2.5.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.

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @wxa/plugin-replace

    Weekly Downloads

    4

    Version

    2.5.1

    License

    MIT

    Unpacked Size

    5.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • genuifx
    • zehuiguan
    • lucaszhu
    • fanniehuang
    • baoooooo