Since Angular 6.0.0-beta.6 the white space optimization option is activated by default.
White spaces can be removed from HTML with the new property on component level by setting the property preserveWhitespaces to false. This feature was introduced with Angular 5.x and with Angular 6 it should be activated by default. Continue reading “Whitespace Handling in Angular 6”