stephenmathieson-boneyard / grunt-obfuscator

Obfuscate nodejs projects via Grunt
7 stars 6 forks source link

targets does not work #4

Open ali-bugdayci opened 9 years ago

ali-bugdayci commented 9 years ago

I tried to use grunt-obfuscator with targets: eg:

    obfuscator: {
      server: {
        files: [ ... ],
        entry: 'server.js',
        out: 'server_obfuscated.js'
      },
      worker: {
        ....
     }
    }

I am getting the following exception:

Running "obfuscator:server" (obfuscator) task
Warning: Cannot call method 'indexOf' of undefined Used --force, continuing.

Can we add the target apprehension ?

biko8 commented 9 years ago

Please add this functionality.

paambaati commented 9 years ago

PR #7 should resolve this.

paambaati commented 9 years ago

I've forked the project with support for multiple targets - https://github.com/paambaati/grunt-obfuscator-redux