Git Product home page Git Product logo

Comments (8)

diaevd avatar diaevd commented on May 27, 2024

Obfuscator working only with vue-cli configuration for TypeScript :(

from webpack-obfuscator.

sanex3339 avatar sanex3339 commented on May 27, 2024

Try to obfuscate your bundle directly with javascript-obfuscator. Error will happen?

from webpack-obfuscator.

alijaya avatar alijaya commented on May 27, 2024

@sanex3339 : do you mean to use javascript-obfuscator cli to the js build file?

from webpack-obfuscator.

alijaya avatar alijaya commented on May 27, 2024

I've tried it... it could work with certain settings... but how I could integrate this in webpack?

from webpack-obfuscator.

sanex3339 avatar sanex3339 commented on May 27, 2024

Strange that it doesn't work, because it just obfuscating bundle.
You can try obfuscate bundle without webpack-obfuscator plugin, with
https://www.npmjs.com/package/editable-sources-webpack-plugin

Anyway, i'll look into this issue when i'll have a time.

from webpack-obfuscator.

alijaya avatar alijaya commented on May 27, 2024

Ok... I have toying with this plugin... so I've found out that... in this line

this.excludes = typeof excludes === 'string' ? [excludes] : excludes || [];

Will be error if excludes is undefined (when you call JavaScriptObfuscator(), without parameter)

So I suggest to change it to:

excludes = excludes || [];
this.excludes = typeof excludes === 'string' ? [excludes] : excludes;

It's now working with yarn build
But still have a warning because in this code, you use deprecated API, you use this:

compiler.plugin('compilation', (...) => {...})

instead of this:

compiler.hooks.compilation.tap('PluginName', (...) => {...})

for yarn serve, I haven't found the solution, it compiles, but it still shows error in the browser. I think it's because the hot reloading code from vue-cli... :-?... I'll tinker around a little bit

from webpack-obfuscator.

peteringram0 avatar peteringram0 commented on May 27, 2024

Also getting issues here. Any full solution for this yet?

from webpack-obfuscator.

isihu avatar isihu commented on May 27, 2024

For anyone seeing this: try setting the parameter "seed" to 0

from webpack-obfuscator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.