Created
September 21, 2017 01:27
-
-
Save YashdalfTheGray/a1a9b28003f6cadcc80cc5a89f68bab3 to your computer and use it in GitHub Desktop.
Console log remover loader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(source, map) { | |
this.callback( | |
null, | |
source.replace(/console\.log\(.*\);?\n/g, ''), | |
map | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment