JSPM

snowpack-plugin-glslify

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q37755F
  • License MIT

Import GLSL strings with glslify (a node.js-style module system for GLSL).

Package Exports

  • snowpack-plugin-glslify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snowpack-plugin-glslify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

snowpack-plugin-glslify

NPM Package

Import GLSL code with glslify (a node.js-style module system for GLSL).

import frag from './shaders/frag.glsl'
console.log(frag)

Installation

npm install --save-dev snowpack-plugin-glslify
yarn add -D snowpack-plugin-glslify

Usage

// snowpack.config.js
import glslify from 'snowpack-plugin-glslify'

export default {
  // ...
  plugins: [
    'snowpack-plugin-glslify'
  ]
}

Options

Currently, the only supported option is compress. If you need more, shoot me a PR.

  plugins: [
    ['snowpack-plugin-glslify', { "compress": false }]
  ]

License

Released under the MIT license.