cargo-web icon indicating copy to clipboard operation
cargo-web copied to clipboard

Prepend js generated by build.rs?

Open ColonelThirtyTwo opened this issue 5 years ago • 1 comments

Is there a way to use the prepend-js config with JS emitted by build.rs in the out folder?

I could potentially use eval with include_str but that seems messy and probably has overhead...

ColonelThirtyTwo avatar Aug 05 '19 20:08 ColonelThirtyTwo

Thinking about it more, something more useful would be the ability to add files in the OUT_DIR to the deploy command's output, so that you could use it with generated CSS, HTML, and other things too.

ColonelThirtyTwo avatar Aug 07 '19 23:08 ColonelThirtyTwo