rollupv2.0-plugin-javascript-obfuscator
v2.0.4
Published
Plugin for Rollup to obfuscate JS code
Downloads
12
Maintainers
Readme
rollup-plugin-javascript-obfuscator
Rollup plugin for javascript-obfuscator.
Installation
Install the package:
- npm
npm install --save-dev rollup-plugin-javascript-obfuscator
- yarn
yarn add --dev rollup-plugin-javascript-obfuscator
Usage
Pass any options available in the obfuscator.
import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'
export default {
inout: 'index.js',
output: {
file: 'dist/index.js'
},
plugins: [
obfuscatorPlugin({
...options
})
]
}
Source Maps
Inline source map configuration:
{
sourceMap: true,
sourceMapMode: 'inline'
}
Separate source map configuration:
{
sourceMap: true
}