1.1.1 • Published 6 months ago

@renderlayer/rollup-shader-chunks v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@renderlayer/rollup-shader-chunks

Rollup plugin for optimising inline GLSL shaders.

NPM version License CI

Install

npm i @renderlayer/rollup-shader-chunks --save-dev

Usage

// rollup.config.js

import { shaderChunks } from '@renderlayer/rollup-shader-chunks';

export default {
  input: 'src/index.js',
  plugins: [
    //... other plugins, preprocessing
    shaderChunks(),
    //... other plugins, terser, etc
  ],
  //...other options
}

Defaults

shaderChunks({
  include: [            // Glob pattern, or array of glob patterns to include
    '**/*.js'
  ],
  exclude: undefined,   // Glob pattern, or array of glob patterns to ignore
  enabled: true         // Enable or disable the processing of files
})

Scripts

ActionCommandDescription
lintnpm run lintRun static code analysis
formatnpm run formatCheck source file formatting
format-fixnpm run format-fixFormat source files

Tools

ToolReference
Node.jshttps://nodejs.org/
rollup.jshttps://rollupjs.org
ESLinthttps://eslint.org/
Prettierhttps://prettier.io
EditorConfighttps://editorconfig.org

References

WebsiteReference
WebGL2https://www.khronos.org/webgl/

License

This project is released under the MIT License.

1.1.1

6 months ago

1.1.0

6 months ago

1.0.1

7 months ago

1.0.0

7 months ago