glslify-loader
glslify loader module for webpack.
Installation
npm install glslify-loader
Generally, you'll want to use this alongside webpack's raw-loader module:
npm install raw-loader
Usage
Documentation: Using Loaders in Webpack
Configuration file
moduleexports = rules: test: /\.$/ exclude: /node_modules/ use: 'raw-loader' 'glslify-loader'
Inline
// Using requireconst source = // Using ES6 import statement
Speficy source transforms
See Glslify Source Transforms for details.
moduleexports = rules: test: /\.$/ exclude: /node_modules/ use: 'raw-loader' loader: 'glslify-loader' options: transform: 'glslify-hex' 'option-1': true 'option-2': 42
Contributing
See stackgl/contributing for details.
License
MIT. See LICENSE.md for details.