I would like to import aframe
in the <head>
tag using the angular.json
config as a separate bundle.
Inside angular.json
I have the script to import from my node_modules:
"scripts": [
"node_modules/aframe/dist/aframe-v1.0.0.min.js"
]
This is bundled and imported at the bottom on the html body.
<body>
<app-root></app-root>
...
<script src="scripts.js" ...>
</body>
This is not desirable as the library specifically requests that I import in the <head>
.
Additionally, I would like to import it as a separate bundle:
"scripts": [
{ "input": "node_modules/aframe/dist/aframe-v1.0.0.min.js", "bundleName": "aframe-v1.0.0.min" }
]