Gulp Obfuscator Wrapper
This is a wrapper around the great node-obfuscator library by stephenmathieson. It was made simply because I needed it for my own builds.
Install
npm install --save-dev gulp-obfuscator-wrapper
Use
var obfuscator = ;var rename = ; gulp;
In case you did not see the comment mixed in the code, it is very important to define base
in your gulp.src
call. While this module might likely work without it, it will help to make sure that your project gets obfuscated correctly, especially with large projects that have a complex nested folder structure, or if you use absolute file paths when defining your sources or entry file.