1.0.1 • Published 5 months ago

rollup-plugin-confuser v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.