I am looking for a way to remove all comments from a javascript file using gulp.
For example, I have the following code:
(function() { var helloworld = 'Hello World';
And my expected result:
(function() { var helloworld = 'Hello World'; console.log(helloworld); })();
source share