javascript-obfuscator / webpack-obfuscator

javascript-obfuscator plugin for Webpack
https://github.com/javascript-obfuscator/javascript-obfuscator
BSD 2-Clause "Simplified" License
853 stars 84 forks source link

implementation of webpack-obfuscator #132

Open DietmarSch opened 2 years ago

DietmarSch commented 2 years ago

I have a js-react project with a lot of files, folders and subfolders. I have installed javascript-obfuscator and webpack-obfuscator, but I have no idea how to implement it into my code.

I have an index.js which renders the main components into the html-file.

Your readme.md has two examples : the rules-Array and the objects entry, output and plugins.

What is to do with this. Shall I import them into the index.js? And then? How shall I use it.

My react-code is still shown in the browser. I want to hide it.

bangank36 commented 1 year ago

Usually we add the webpack-obfuscator into webpack.config.js file, could you post the content of that file in your project first?