Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Add support for binary file compilers #840

Open
kavika13 opened this issue May 30, 2014 · 1 comment
Open

Add support for binary file compilers #840

kavika13 opened this issue May 30, 2014 · 1 comment
Labels

Comments

@kavika13
Copy link
Contributor

Currently the pipeline reads files from the filesystem as UTF-8 before passing the data to compilers, and there is no option to read in "binary only" mode.

I don't know if the factoring of the pipeline and how files are processed works with this, but it would be nice if a compiler could have a configuration setting to let the pipeline know it has to pass it data in binary format.

Currently the workaround is to supply the compile function signature that takes the data, path, and callback, and then re-open/re-read the file in your compiler.

Example use case: HTML 5 game that uses binary assets, converting them to javascript data at compile time.

@kavika13
Copy link
Contributor Author

This is a feature request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants