This is a GLSL parser written as a webpack loader, this loader will mangleyour GLSL code with the following modificitons.
- Obfuscates private variables.
- Removes comments.
- Removes whitespaces.
These instructions will help you .
- Install Node.Js if you have not already.
- nstall webpack Version 4.32.0
npm install --save-dev webpack@4.32.0
- Make sure that your root file ( index.js ) is in the src directory.
- Copy the glsl_loader.js file in your root project directory.
- Copy webpack.config.js file in your root project directory.
- To make a build run the following command in the terminal.
npm run build
- The build will be created as bundle.js in the Build directory.
This project is licensed under the MIT License.