I've a question though a silly one but I really need to know. If we're using axios then should I install it as dependencies or devdependencies? As I understand that webpack will bundle it in vendor file then installing it in production server as dependencies is just pointless. Please advise
You should install it as a dependencies
because you use it in your application, not only as a dev tool
.
devDependencies
. Put everything that is not included in the consuming application e.g. through a compilation step into dev dependencies. This way the consumers of your package or your production install or your docker container will not include an unused dependency. Your users will thank you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With