Issue
Now I use directrly embedded link to JS file in index.html:
<script sync src="http://api.js" type="text/javascript"></script>
How to add this custom js file in bundle Angula from config file?
Solution
I don't know WHAT you would use it for, but I assume you're doing a replace of urls on that file? Whatever the reason, you can add js files in the assets array in the angular.json
...
"assets": [
"src/favicon.ico",
"src/assets",
"src/api.js" <- your file
],
Answered By - ak.leimrey
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.