-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 2 support? #7
Comments
You tried to follow readme? Any errors? |
@sanex3339 |
Later this day |
thank you |
There a bunch of problems related to issue. One problem can be easyli fixed (plugin tried to obfuscate non |
Ahh, i'd be very thankful if you could find the soltuion. I really want to use obfuscation. Thanks for ur hard work btw |
Ok, i found all problems, but now i need a time to analyze a way to fix it. First problem related to plugin. Second problem related to Take a look at code before
In the code you can see Right now everything is ok, i have a test for this case: But after minification with
You can see what names in first line with function parameters After obfuscation it breaks code, because obfuscator thinking what variables with names
So, i looking for a solution. |
aaa makes sense. I kept wondering what could be causing this. But thank God you were able to find out the issue. Thanks for working on this to find a solution. hopefully it will help all angular users =) Best. |
Looks like i understand how i can change algorythm to fix this, but this just a theory now. |
Looks like i fixed runtime error. Need time to test it because this is core changes to few node obfuscators. Fix will be in |
Runtime error fixes here: Also after obfuscation i applying https://github.com/nolanlawson/optimize-js to output code. |
├── UNMET PEER DEPENDENCY webpack@2.1.0-beta.22 and in config/webpack.dev.js i put // main
const WebpackObfuscator = require('webpack-obfuscator');
// in plugins array.
new WebpackObfuscator({
rotateUnicodeArray: true
}, ['excluded_bundle_name.js']) its the same as before ? am i doing this right? |
I didn't released update to plugin or for |
@sanex3339 let me know when should i test it. also did i setup the obfuscator correctly? like i mentioned above? |
|
@sanex3339 works like a charm bro, thanks a lot for this update! |
nice! |
@sanex3339 is it possible to just encrypt a single Class file that doing a whole project? |
Hi. This is plugin, so it works with output bundle files. In your case you can try to make this file as separate chunk with https://webpack.github.io/docs/list-of-plugins.html#commonschunkplugin and exclude every bundle/chunk except this one in plugin config. |
Hello,
Can you please let me know how to use this JS obfuscator for Angular2 Starter?
Thanks
The text was updated successfully, but these errors were encountered: