fis3-preprocessor-replacer
A preprocessor for fis3 to replace string content
How to use
Install
npm install fis3-preprocessor-replacer --save-dev
Add configure to fis-conf.js
fis;
Multi-replace
fis;
Options
-
from -
string|RegExp
: the regexp or string to replace -
to -
string
: the content to replace from -
rules -
array
: multi-replace rule -
envify -
boolean
: whether to replace theprocess.env.NODE_ENV
with the constant plain string, the string value is determined by the `isProd' option -
isProd -
isProd
: whether in production environment