Skip to content

Config file #15

@RyanZim

Description

@RyanZim

Hey, I just noticed that you added a CLI. I was wondering if you would consider supporting a config file to contain the from & to options.

My use-case: I replace an HTML comment with my analytics tracking code. The tracking code is multi-line, so I can't inline it in the command. If we had a config file, we could do something like:

module.exports = {
  from: '<!-- replace me -->',
  to: `Some big
multiline
text`
}
replace-in-file dist/**/*.html -c replace.js

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions