[Packager] Require plain text/other files
See original GitHub issueIs there someone to load files from the project that are not js/json/jsx? My specific use case is to allow users to write glsl shaders and require (or some way include) them like const shaderText = require('./myFragShader.frag');
- but it would also be good to be able to load other files, such as plain-text files, too.
I guess “require” is not the correct method for this, but it would be good to somehow load a file like this. Perhaps it could just be a browserify transform, but I’m just wondering if there any nice way to do it now?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:7
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Working with the Project Packager in Altium Designer
Managing how files outside the project folder are handled during packaging. Including/excluding Generated files, such as reports, in the project ...
Read more >Is it possible to include text files in the 'data' subdirectory of an ...
Building on @Tyler Rinker's comment, I think the proper place to include miscellaneous files is to include them in a inst/ directory in...
Read more >3.4 Documentation | Mastering Software Development in R
As the field of data science evolves, it has become clear that software ... A package likely only needs a README file if...
Read more >casey/just: Just a command runner - GitHub
just is a handy way to save and run project-specific commands. This readme is also available as a book. (中文文档在 这里, 快看过来!)
Read more >Import questions from GIFT format files - Adobe Support
GIFT stands for General Import Format Technology using which you can create questions using plain text. These files can be saved as text...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This functionality would also be useful for including html within a WebView.
Hey @mrspeaker! Thanks for opening the issue. We are closing it because it’s a feature request, and we want to focus Github issues on bugs.
If this can’t be implemented as a standalone npm module free to send us a Pull Request or create an entry on Product Pains. It has a voting system and if the feature gets upvoted enough it might get implemented.