Closed xiasun closed 3 months ago
Yes, I suggest instead of using the to
parameter, you use a local .json
config file instead:
replace-in-file my-file.js --configFile=config.json
config.json
{
"from": "/_2/g",
"to": "",
}
You can put the my-file.js
in your config as well.
Thanks, using config file is fine!
For example I want to remove all variables with suffix
_2
with empty in my fileBut I can't a proper way to represent empty, Is there any?
Thanks~