inline-source-cli
inline-source-cli copied to clipboard
Piping causes error: Not enough non-option arguments: got 0, need at least 1
When I try to run the code in the readme:
cat build/index.html | inline-source --root build > build/bundle.html
I get the error:
Not enough non-option arguments: got 0, need at least 1
The build/index.html looks like:
<html lang="en">
<head>
<meta charset="utf-8">
<script src="test.js" inline></script>
</head>
<body ontouchstart="">
</body>
</html>
The test.js looks like:
test
The output file build/bundle.html gets created but empty.
You need to provide an unnamed argument for the entrypoint.
Something like inline-source --root build index.html.