Skip to content

AngeloCore/rollup-plugin-confuser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-confuser

Obfuscate your project using JS Confuser.

Installation

npm:

npm i rollup-plugin-confuser -D

yarn:

yarn add rollup-plugin-confuser -D

pnpm:

pnpm add rollup-plugin-confuser -D

Usage

import confuser from "rollup-plugin-confuser";

export default {
  input: "src/index.js",
  output: {
    dir: "output",
    format: "cjs"
  },
  plugins: [
    confuser({
      global: false,
      include: ["src/index.js"]
    })
  ]
};

Options

global

Type: boolean
Default: true

If set to true the plugin will obfuscate the whole project, including all the dependencies.

options

Type: boolean
Default: true

Custom js-confuser options, you can see all the available options in their documentation.

exclude

Type: String | Array[...String]
Default: null

A picomatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.

include

Type: String | Array[...String]
Default: null

A picomatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

Information

Resources

Made by Angelo II

Copyright © (C) Angelo II, MIT license.

About

Obfuscate your project using js-confuser.

Resources

License

Stars

Watchers

Forks