glsl-loader Webpack GLSL loader allows you to import glsl files as raw text for WebGL Example This would import the raw text from "dots/vs.glsl" as a variable called "vs". import vs from './dots/vs.glsl';