😊😊😊😊Documentation
🎉replace string in wxa
new ReplacePlugin({
list: [{
regular: new RegExp('APP_ENV', 'gm'),
value: 'bcds'
}]
})
new ReplacePlugin({
list: {
'APP_ENV': 'bcds'
}
})
-
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: