@vxna/glsl-loader

Bundle your shaders without comments

Usage no npm install needed!

<script type="module">
  import vxnaGlslLoader from 'https://cdn.skypack.dev/@vxna/glsl-loader';
</script>

README

@vxna/glsl-loader

Bundle your shaders without comments

Usage

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.(frag|vert|glsl)$/,
        loader: '@vxna/glsl-loader'
      }
    ]
  }
}

License

MIT (http://www.opensource.org/licenses/mit-license.php)