- Notifications
You must be signed in to change notification settings - Fork0
Rollup plugin for JS-Confuser
License
NotificationsYou must be signed in to change notification settings
EXPress-016/rollup-plugin-javascript-confuser
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Rollup Plugin forjs-confuser. Forked fromvite-plugin-javascript-obfuscator.
Install the package:
- npm
npm install --save-dev rollup-plugin-javascript-confuser - yarn
yarn add --dev rollup-plugin-javascript-confuser - pnpm
pnpm i rollup-plugin-javascript-confuser -D
rollup.config.mjs
importobfuscatorPluginfrom"rollup-plugin-javascript-confuser";exportdefault{input:'src/index.js',output:{dir:'output',format:'cjs'},plugins:[obfuscatorPlugin({options:{// your js-confuser optionsdebugProtection:true,// ... [See more options](https://js-confuser.com/docs/options)},})]};
vite.config.js
importobfuscatorPluginfrom"rollup-plugin-javascript-confuser";exportdefault{input:{a:'foo.js',b:'bar.js'}output:{dir:'output',format:'cjs'},plugins:[obfuscatorPlugin({include:["src/path/to/file.js","path/anyjs/**/*.js",/foo.js$/],exclude:[/node_modules/],debugger:true,options:{// your js-confuser optionsdebugProtection:true,// ... [See more options](https://js-confuser.com/docs/options)},})]};
| Name | Type | Default | Description |
|---|---|---|---|
include | Array|String|RegExp|Function | [/\.(jsx?|tsx?|cjs|mjs)$/] | Configure this option to include files |
exclude | Array|String|RegExp|Function | [/node_modules/, /\.nuxt/] | Configure this option to exclude files |
options | Object | javascript-obfuscator default options | See more options |
debugger | Boolean | false | Used for debugging, Print out the path of matching or excluding files. |
About
Rollup plugin for JS-Confuser
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.