Obfuscate your project using JS Confuser.
npm:
npm i rollup-plugin-confuser -D
yarn:
yarn add rollup-plugin-confuser -D
pnpm:
pnpm add rollup-plugin-confuser -D
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"]
})
]
};
Type: boolean
Default: true
If set to true
the plugin will obfuscate the whole project, including all the dependencies.
Type: boolean
Default: true
Custom js-confuser options, you can see all the available options in their documentation.
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.
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.
Made by Angelo II
Copyright © (C) Angelo II, MIT license.