@scarletsky/rollup-plugin-javascript-obfuscator

1.0.4 • Public • Published

rollup-plugin-javascript-obfuscator

Build Status Coverage Status

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 { rollup } from 'rollup'
import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'

	rollup({
		entry: 'main.js',
		plugins: [
			//Pass options here (optional)
			obfuscatorPlugin({
			  compact: true
			})
		]
	})

Source Maps

Inline source map configuration:

{
	sourceMap: true,
	sourceMapMode: 'inline'
}

Separate source map configuration:

{
	sourceMap: true
}

Package Sidebar

Install

npm i @scarletsky/rollup-plugin-javascript-obfuscator

Weekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

8.45 kB

Total Files

12

Last publish

Collaborators

  • scarletsky