angular18 – How to move script files from index.html to angular.json
I’ve been tasked with moving some script files in our index.html out; my options are, apparently, either package.json via npm or into the angular.json; I’ve opted for the later as we have very specific versions of some files.
As it stands, all the files are located in a folder called lib:
The files are things like jquery, underscore, moment etc (this is an application that was once angularjs, hence the addition of jquery yester-year) and are very specific versions that the team want to keep.
I added the jquery entries only to the scripts portion of the angular.json as a proof of concept but this breaks the application (the ui is messed up but there is no console error).
So what’s the problem here?
Read more here: Source link

