One way to process multiple text files is illustrated by the following:
(jq -Rs . a.txt ; jq -sR . b.txt) | jq -s
[
"1\n2\n",
"3\n4\n"
]
So, in your case, you would do something like this:
(jq -Rs '{ html: . }' index.html; \
jq -Rs '{ javascript: . }' main.js; \
jq -Rs '{ css: . }' style.css) |\
jq -s add
That is, convert each text file to a JSON string separately, and then pass those lines to jq. This has the advantage that jq 1.5 is not required, but if you have jq 1.5, then a solution using a filter may be preferable inputs
.