Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Config.xml versus Package.json (Best Practices)

$
0
0

@alexbrodsky wrote:

Some of the plugins I use are saved in config.xml and others are saved in my package.json file. I've noticed that when I use "cordova plugin add..." that plugins are added to the config.xml file, and when I use "npm install..." the install settings are saved to the package.json file.

Is there a way to clean this process up? What is the reccommended way to download all files? We have a new member joining the team and I had trouble explaining this part of the project to them, but was able to get through the issue by having them run both of the following commands on initial setup so it installed plugins from both the config.xml and package.json files:
1. npm install
2. Ionic state restore

I'm looking for any best practices regarding these two files or if anyone knows why both files are used to do the exact same thing!

Any help is greatly appreciated.

Alex

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>