ehynds / grunt-remove-logging

Grunt.js task for removing console logging statements
MIT License
192 stars 33 forks source link

console.group and groupEnd() not being removed #39

Open dvago opened 9 years ago

dvago commented 9 years ago

Hi there,

I've implemented this plugin into a project of mine where I'm organizing the logs into Groups for a cleaner debug.

I still having the group logs when I run the build. I tried to extend the namespace as the following code Could you have a look please?

removelogging: {
    dist: {
         src: "dist/**/*.js",
         options: {
           namespace: ['console', 'console.groupEnd', 'console.group']
         }
     }
  },
dvago commented 9 years ago

I closed the issue when I saw the methods option but didn't work. The issue still :(