Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rollup plugin for JS-Confuser

License

NotificationsYou must be signed in to change notification settings

EXPress-016/rollup-plugin-javascript-confuser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Rollup Plugin forjs-confuser. Forked fromvite-plugin-javascript-obfuscator.

Installation

Install the package:

  • npmnpm install --save-dev rollup-plugin-javascript-confuser
  • yarnyarn add --dev rollup-plugin-javascript-confuser
  • pnpmpnpm i rollup-plugin-javascript-confuser -D

Usage

Example 1

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)},})]};

Example 2

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)},})]};

Params

NameTypeDefaultDescription
includeArray|String|RegExp|Function[/\.(jsx?|tsx?|cjs|mjs)$/]Configure this option to include files
excludeArray|String|RegExp|Function[/node_modules/, /\.nuxt/]Configure this option to exclude files
optionsObjectjavascript-obfuscator default optionsSee more options
debuggerBooleanfalseUsed for debugging, Print out the path of matching or excluding files.

[8]ページ先頭

©2009-2025 Movatter.jp