Package Exports
- gulp-js-obfuscator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-js-obfuscator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-js-obfuscator
Gulp plugin for js-obfuscator.
Installation
Install the package with NPM and add it to your development dependencies:
npm install --save-dev gulp-js-obfuscator
Usage
var gulp = require('gulp'),
js_obfuscator = require('gulp-js-obfuscator');
var path = {
build: {
js: 'out/',
},
src: {
js: 'src/**/*.js',
}
};
gulp.src(path.src.js)
.pipe(js_obfuscator({}, ["**/jquery-*.js"]))
.pipe(gulp.dest(path.build.js));
Options
obfuscatorOptions
Type: Object
Default: null
Options for js-obfuscator. Should be passed exactly like described on their page.
excludes
Type: Array
or String
Default: []
Examples: ["**/jquery-*.js", "**/*.min.js"]
or "**/jquery-*.js"
Can be used to bypass obfuscation of some files.