package
glslify loader module for webpack
npm install glslify-loaderGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
glslify loader module for webpack.
npm install glslify-loaderGenerally, you'll want to use this alongside webpack's raw-loader module:
npm install raw-loaderDocumentation: Using Loaders in Webpack
module.exports = {
rules: [
{
test: /\.(glsl|vs|fs|vert|frag)$/,
exclude: /node_modules/,
use: [
'raw-loader',
'glslify-loader'
]
}
]
}// 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'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 }]
]
}
}
]
}
]
}See stackgl/contributing for details.
MIT. See LICENSE.md for details.
mikolalysenko
mikolalysenko@gmail.com
yoshuawuyts
javascript@yosh.is
mikkoh
me@mikkoh.com
tatumcreative
tatum.creative@gmail.com
wwwtyro
wwwtyro@gmail.com
thibauts
thibaut.seguy@gmail.com
bpostlethwaite
post.ben.here@gmail.com
dfcreative
df.creative@gmail.com
erkaman
arnebackeric@gmail.com
gre
renaudeau.gaetan@gmail.com
rreusser
rsreusser@gmail.com
vorg
marcin.ignac@gmail.com
archmoj
arch.mojtaba.samimi@gmail.com
Estimated unpacked size across 33 packages.
736.8 kB
Includes dependencies.
4 direct · 1 outdated