1.1.0 • Published 11 months ago
@bytehide/rollup-shield v1.1.0
@bytehide/rollup-shield
A Rollup plugin for obfuscating JavaScript code using ByteHide Shield.
Installation
npm install @bytehide/rollup-shield --save-devUsage
// rollup.config.js
import ByteHideShieldPlugin from '@bytehide/rollup-shield';
export default {
input: 'src/index.js',
output: {
dir: 'dist',
format: 'es'
},
plugins: [
ByteHideShieldPlugin({
projectToken: 'your-bytehide-token',
// Optional configurations
distDir: 'dist',
replace: false,
obfuscatedExtension: '.obf',
exclude: ['excluded.js'],
config: {
controlFlowFlattening: true,
debugProtection: false,
devtoolsBlocking: false,
}
})
]
};Options
projectToken(required): Your ByteHide project tokendistDir(optional): Output directory (default: 'dist')replace(optional): Replace original files (default: false)obfuscatedExtension(optional): Extension for obfuscated files (default: '.obf')exclude(optional): Array of files to exclude from obfuscationconfig(optional): ByteHide Shield configuration options
License
MIT
Happy coding but keep it safe with @bytehide/rollup-shield! 🛡️