JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2098
  • Score
    100M100P100Q123947F
  • License Zlib

A GLSL plugin for esbuild.

Package Exports

  • esbuild-plugin-glsl

Readme

esbuild-plugin-glsl

CI Version

An esbuild plugin that adds support for .frag, .vert and .glsl file imports with optional shader minification.

Installation

npm install esbuild-plugin-glsl

Usage

import { build } from "esbuild";
import glsl from "esbuild-plugin-glsl";

build({
    entryPoints: ["input.js"],
    outfile: "output.js",
    bundle: true,
    plugins: [glsl({
        minify: true
    })]
}).catch(() => process.exit(1));

Contributing

Use the issue tracker to propose and discuss changes. Maintain the existing coding style. Lint and test your code.