๐Ÿ› ️ How to remove unwanted or unused plugins from Angular or node project?

 Here’s a simple approach to find and remove unused dependencies in your Ionic 3 & Angular 5 app:

Steps to Remove Unused Dependencies

1. Identify Unused Dependencies

Use the depcheck tool to check which dependencies are unused.

Install depcheck globally


npm install -g depcheck

Run depcheck in your project root


depcheck

It will list:

  • Unused dependencies (can be removed)
  • Missing dependencies (need to be installed)

2. Remove Unused Dependencies

Once identified, uninstall them:


npm uninstall package-name

Or remove multiple at once:


npm uninstall package1 package2 package3

3. Check Cordova Plugins

Run:


cordova plugin list

Manually remove unnecessary plugins:


cordova plugin remove plugin-name

4. Clean node_modules and Reinstall


rm -rf node_modules package-lock.json npm install

5. Optimize Your Build

Run:


npm run build --prod

to ensure performance improvements.

Comments

Popular posts from this blog

SwiftUI - Tutorial 2 - ๐Ÿงต Understanding @MainActor in SwiftUI — A Beginner’s Guide

SonarQube With Angular 19 on Windows: A Complete Setup and Integration Guide

Setting Up Jenkins for Flutter App on macOS