@renderlayer/rollup-shader-chunks 1.1.1 • Public • Published 6 months ago
Rollup plugin for optimising inline GLSL shaders.
npm i @renderlayer/rollup-shader-chunks --save-dev
// 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
}
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
} )
Action
Command
Description
lint
npm run lint
Run static code analysis
format
npm run format
Check source file formatting
format-fix
npm run format-fix
Format source files
This project is released under the MIT License .
Package Sidebar Install npm i @renderlayer/rollup-shader-chunks
Downloads Weekly Downloads