When I build an Angular 17+ project using ng build
, I would like the version from package.json
to be inserted into the HTML <head>
. Something like:
<meta name="version" content="1.0.1" />
I know the Angular version gets inserted into the <app-root>
web component, but that’s not what I’m after–I want the project version to be injected.
2