I have a project that was created a long time back without using Angular CLI tools. Recently, I've been trying to look at improving load performance within my app, and I wanted to see if I can use the optimization tools under CLI, so I installed it with npm. When trying to run the command "ng build" I get the following error: The build command requires to be run in an Angular project, but a project definition could not be found.
Does Angular CLI require the app to be created under the tool? I've been using package.json to define my angular app, but I see mentions of using angular.json for cli, do I need to modify the package.json file? Is there a way I can support the CLI module under my app?