question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Packager] Require plain text/other files

See original GitHub issue

Is 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:closed
  • Created 8 years ago
  • Reactions:7
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
limscodercommented, Jan 4, 2016

This functionality would also be useful for including html within a WebView.

3reactions
jsierlescommented, Mar 20, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found