I have a large ASP .NET web application that I am integrating with AngularJS. I am trying to re-structure the directories to reflect a more standardized Angular file structure, but I am running into a problem when it comes to trying to make this transition without breaking our production site.
We use the Kentico CMS to render our pages and therefore it is also used to fetch application wide JavaScript files in the <head>
tag. The problem is that I cannot add the new JS files into Kentico without the production version breaking because the JS files do not exist in production, they only exist on my local environment until we make a production build. Therefore I was wondering if there is a way to make a JavaScript file include optional and therefore not break the page and cause JS errors?
This way, I can add the files in Kentico and continue developing locally without breaking the production site.