Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
esbuild-plugin-glslify
Advanced tools
Import GLSL strings with glslify - based on https://github.com/glslify/rollup-plugin-glslify
NOTE: this plugin is based on rollup-plugin-glslify
An esbuild plugin to import GLSL strings with glslify (a node.js-style module system for GLSL).
import frag from './shaders/frag.glsl';
console.log(frag);
yarn:
yarn add esbuild-plugin-glslify --dev
NPM:
npm install --save-dev esbuild-plugin-glslify
import { build } from 'esbuild';
import { glslify } from 'esbuild-plugin-glslify';
build({
entryPoints: ['input.js'],
outfile: 'output.js',
bundle: true,
plugins: [glslify({
extensions: [ 'vs', 'fs', '.glsl', '.frag.shader' ],
compress: true,
})],
}).catch(e => {
console.error(e);
process.exit(1);
});
The plugin responds to the following configuration options:
glslify({
extensions: string[], // a list of the file extensions this plugin should process.
// DEFAULT: [ 'vs', 'fs', 'vert', 'frag', 'glsl' ]
compress: boolean, // should the finial output be compressed (minified)
// DEFAULT: false
});
Any unrecognized options will be forwarded to the glslify compiler:
glslify({
transform: ['glslify-import'], // this will configure glslify to import the `glslify-import` module
});
Read the glslify API options for more information.
FAQs
Import GLSL strings with glslify - based on https://github.com/glslify/rollup-plugin-glslify
The npm package esbuild-plugin-glslify receives a total of 28 weekly downloads. As such, esbuild-plugin-glslify popularity was classified as not popular.
We found that esbuild-plugin-glslify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.