I am designing an Angular app, I want to reduce the overall size of the app. My app has dependency on Angular Material, I have found inside node_modules it has some unused UI components like autocomplete, checkbox etc are not used at all in my app. I am matInput and some other UI components. I want to get rid of unused ones.
My overall goal is to reduce the size of the app.
What I tried is : Inside package.json, I tried
"@angular/material/input": "^10.1.0",
instead of just
"@angular/material": "^10.1.0",
I know this won't work, I am not a professional in angular. Any suggestion on how to remove unused node_modules to reduce the overall size of app would be really appreciated.