@wxa/plugin-replace
v2.5.1
Published
replace string
Downloads
6
Readme
:blush::blush::blush::blush:Documentation
wxa-plugin-replace
:tada: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
- type:
- flag
- type:
{String} flag
- flag:
gm
- tip: regular express's flag.
- type: