Comprehension refactor of webpack config (#15815)
Comprehension refactor of webpack config (#15815)

* Destructure buildtype off env, and default to 'localhost'

* Fix typo

* Use temp variables to prevent some line wrapping

* Replace 'localhost' strings with LOCALHOST constants
department-of-veterans-affairs/vets-website,department-of-veterans-affairs/vets-website