glsl-minify-loader
webpack loader for optimizing and minifying GLSL
Last updated 2 years ago by bingo347 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glsl-minify-loader 
SYNC missed versions from official npm registry.

glsl-minify-loader

Webpack loader for optimizing and minifying GLSL

Install

npm i -D glsl-minify-loader

or

yarn add -D glsl-minify-loader

Usage

// webpack.config.js
 module: {
    rules: [{
        test: /\.glsl$/,
        use: 'glsl-minify-loader'
    }]
}

// in code
import fragment from './fragment.glsl';
import vertex from './vertex.glsl?t=vertex';

Options

  • shaderVersion: 2 or 3 (default 2)
  • shaderType: 'vertex' or 'fragment' (default 'fragment'), may be reconfigure in query by t parametr (example: file.glsl?t=vertex)

License

MIT © Dmitriy Belyaev

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |