Closed achyuth closed 8 years ago
I'm not familiar with grunt-obfuscator but the error Uncaught ReferenceError: require is not defined" browser console.
indicates you're trying to run node.js (server side) code in the browser. Try running node obfuscated.js
instead of running that file in the browser.
Hi All, I am trying to obfuscated all js files in js folder by using https://www.npmjs.com/package/grunt-obfuscator I have installed grunt, node and updated npm in my windows machine. below is my sample code. I have run "grunt obfuscator" and its generates "obfuscator" js file that is great, But throws "obfuscated.js:1 Uncaught ReferenceError: require is not defined" browser console.
app.js code:
site.js code:
Please help me on this.