🛠️ 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

Your build is currently configured to use incompatible Java 21.0.3 and Gradle 8.2.1. Cannot sync the project.

Google Assistant Implementation in Android application with app actions