title: Angular 10: How to remove comments from vendor.js in production?
body: <p>I have an Angular 10 project. If I compile it with --prod, I have vendor.js about 4,7Mb. I've looked into it and realized that there are a lot of functions in it with huge comments:
  <a href="https://i.stack.imgur.com/amKPQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/amKPQ.png" alt="Comment Excample" /></a></p>
  <p>How to produce vendor.js without them?</p>
  <p>I've tried removeComments option. But it seems to work only for main.js.</p>