ehynds / grunt-remove-logging

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

Allow users to specify only a 'src' option and have it overwrite the file. #13

Closed shakyShane closed 10 years ago

shakyShane commented 11 years ago

I actually submitted a pull-request to Grunt to allow this functionality out of the box - not accepted unfortunately. :(

Anyway, this PR will allow for users to only specify a SRC option and then it will overwrite each file that is matched.

removelogging: {
      dist: {
        src: ["app/js/test/*.js"] /* all matching files will be overwritten */
      }
}
jasonmcaffee commented 11 years ago

+1. the library isn't really useful without it.

Hesesses commented 10 years ago

This is must!