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