You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agreed, that's already planned - for now, we've been using the following simple shell script to prepend the headers:
#!/bin/bash
dist="dist"
output=$dist"/headers.js"
generate-headers tampermonkey \
-o $output \
-m all meta \
-g get set delete unsafe \
--collapse \
--pretty
# given the output is "dist/something.js" and the metadata file is "dist/headers.js"
userscript="$(find -iwholename "./$dist/*\.js" -type f -not -iname "*headers\.js")"
sed -i -e "{1e cat $output; echo; echo" -e "; N}"$userscript
I use the Parcel bundler to generate my built script. It would be nice if we could prepend the header to this generated file (by specifying the path).
The text was updated successfully, but these errors were encountered: