Skip to content

Running inline-source command on file removes contents of file. #81

@zbayoff

Description

@zbayoff

Hello,
This is probably not an issue with inline-source itself, and more of me not understanding the CLI well enough. But I have an index.html file in my dist folder with a script with the inline attribute. I would like to run the inline-source command on this index.html and replace it exactly, except with the script now inlined.
I tried running: cat ./index.html | inline-source --root ./ > ./index.html but this just empties the index.html file.
Could you provide a little guidance?

Thank you.

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