
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
vite-plugin-obfuscate-glsl
Advanced tools
Vite plugin to obfuscate GLSL shaders using laurentlb/Shader_Minifier
Plugin Vite pour obfusquer les shaders GLSL en utilisant Shader_Minifier
npm install vite-plugin-obfuscate-glsl --save-dev
# ou
yarn add vite-plugin-obfuscate-glsl -D
# ou
pnpm add vite-plugin-obfuscate-glsl -D
Dans votre fichier de configuration Vite (vite.config.js
ou vite.config.ts
) :
import { defineConfig } from 'vite'
import obfuscateGlsl from 'vite-plugin-obfuscate-glsl'
export default defineConfig({
plugins: [
obfuscateGlsl({
shaderMinifier: './node_modules/vite-plugin-obfuscate-glsl/shader_minifier.exe'
})
]
})
Option | Type | Description |
---|---|---|
shaderMinifier | string | Chemin vers l'exécutable shader_minifier (inclus dans le package) |
Le plugin intercepte les fichiers .glsl?raw
pendant le processus de build et les traite avec Shader_Minifier pour produire une version obfusquée et minifiée. Cette transformation n'est appliquée qu'en mode production.
Importez vos shaders GLSL dans votre code :
import fragmentShader from './shaders/fragment.glsl?raw'
import vertexShader from './shaders/vertex.glsl?raw'
Lors de la construction en production, ces shaders seront automatiquement obfusqués.
MIT © Eric Pascal
FAQs
Vite plugin to obfuscate GLSL shaders using laurentlb/Shader_Minifier
The npm package vite-plugin-obfuscate-glsl receives a total of 20 weekly downloads. As such, vite-plugin-obfuscate-glsl popularity was classified as not popular.
We found that vite-plugin-obfuscate-glsl demonstrated a healthy version release cadence and project activity because the last version was released less than 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.