Reputation: 5513
Is webpack always installed under devDependencies ?
I am a little confused if we need to install webpack under (production) dependencies when we want to set mode = 'production'
.
Also, is babel always under devDependencies too ?
Upvotes: 1
Views: 353
Reputation: 7136
Dev Dependencies are what you need to develop your app. Webpack packs it, Babel transpiles it. You can also add eslint to the list if you want. Those will not be shipped with the final packed app.
Dependencies are your app dependencies, what it needs in order to work. Those will mainly be the modules you require in your sources.
Testing tools (Karma, Mocha, Jest, etc...) are also Dev Dependencies.
Upvotes: 2