A parser for fis3 to replace string content
npm install fis3-parser-replacerfis3-parser-replacer 
======
> A parser for fis3 to replace string content
``shell`
npm install fis3-parser-replacer --save-dev
`js
// using single replace rule
fis.match('src/**.js', {
parser: fis.plugin('replacer', {
from: /xxx/g, // or string
to: 'xxx'
})
});
// using multiple replace rules
fis.match('src/**.js', {
parser: fis.plugin('replacer', {
rules: [
{
from: /xxx/g, // or string
to: 'xxx'
},
{
from: /xxx/g, // or string
to: 'xxx'
}
]
})
});
`
* from - string|RegExp: the regexp or string to replace
* to - string: the content to replace from
* rules - Array.
* from: the same as to optionfrom
* to: the same as option
* envify - boolean: whether to replace the process.env.NODE_ENV with the constant plain string, the string value is determined by the isProd' option
* isProd - isProd: whether in production environment