You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this in the documentation for raw-loader:
Beware, if you already define loader(s) for extension(s) in webpack.config.js you should use:
import css from '!!raw-loader!./file.txt'; // Adding `!!` to a request will disable all loaders specified in the configuration
Now the shader compiles successfully. Not sure if this was an issue in my configuration somehow, and I'm not sure what to title this issue, but hope it helps someone.
The text was updated successfully, but these errors were encountered:
I noticed what appears to be a bug when using this syntax:
would print
Notice that it includes
#define GLSLIFY 1
twice, andexport default
which makes it invalid GLSL. This would cause the shader compilation to fail.Here is my webpack config:
The Solution
I came across this in the documentation for raw-loader:
When I added it to my code, it worked properly.
now prints:
Now the shader compiles successfully. Not sure if this was an issue in my configuration somehow, and I'm not sure what to title this issue, but hope it helps someone.
The text was updated successfully, but these errors were encountered: