-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can fs.createReadStream() be used with assets #775
Comments
Are you trying to read source files ? (.js) ? If so, add |
They are .html & .css files.`"fs_reach_sources": true`` is set. And the file path is absolute. |
@nevf Are you having problems with |
@ktrzeciaknubisa Yes I am having a problem as I mentioned in my first post. I am using node-static https://github.com/cloudhead/node-static which uses Before I spent time debugging I wanted to know if createReadStream() should work. I'll reply again once I work out where it is going wrong. |
Ok, got it. node-static chains event handlers as follows:
If I remove the |
@obastemur Yes that fixes it. Thank you for the very quick fix. Can I just confirm that all I need is the new jx.exe, not other libraries, files etc.? |
exactly |
@nevf Thanks for the details. Closing this issue then. |
Can someone please let me know if
fs.createReadStream()
can be used with files in assets. My jx app is failing using it.I've read "Accessing Files and Assets from a Package" at http://jxcore.com/docs/jxcore-feature-packaging-code-protection.html which suggests it can't be. And I've also read #77 which suggests it can. So I'm a bit confused.
The text was updated successfully, but these errors were encountered: