/ piacw.com / dev / final / node_modules / glslify-loader /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[TXT]LICENSE.md2 years ago1.2K0fb859dc fixed mobile overflwo options [كارل مبارك]
[TXT]README.md2 years ago1.5K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]glslify-loader.js2 years ago1.8K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago2.0K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

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
module.exports = {
  rules: [
    {
      test: /\.(glsl|vs|fs|vert|frag)$/,
      exclude: /node_modules/,
      use: [
        'raw-loader',
        'glslify-loader'
      ]
    }
  ]
}
Inline
// Using require
const source = require('raw-loader!glslify-loader!./my-shader.glsl')

// Using ES6 import statement
import source from 'raw-loader!glslify-loader!./my-shader.glsl'
Speficy source transforms

See Glslify Source Transforms for details.

module.exports = {
  rules: [
    {
      test: /\.(glsl|frag|vert)$/,
      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.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80