Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zbayoff opened this issue Feb 12, 2019 · 0 comments
Open

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

zbayoff opened this issue Feb 12, 2019 · 0 comments

Comments

@zbayoff
Copy link

zbayoff commented Feb 12, 2019

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.

@zbayoff zbayoff changed the title Running inline-source command removes contents of file. Running inline-source command on file removes contents of file. Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant