snowpack-plugin-glslify

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i snowpack-plugin-glslify

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

113 kB

Total Files

16

Last publish

Collaborators

  • borisdiakur