node.js - Optimal method(s) for installing select devDependencies using Heroku -


i curious know preferred method(s) installing select devdependencies using heroku.

by default, heroku does not install devdependencies; can enabled changing config:

heroku config:set npm_config_production=false 

however, heroku docs recommend against this:

since don’t want development dependencies in production builds, it’s preferable move dependencies need production builds (bower, grunt, gulp, etc) dependencies.

i argue listing devdependencies in dependencies appears messy, package.json contains "duplicate" modules, eg:

dependencies: {     "eslint-config-airbnb": "14.1.0",     "eslint-plugin-react": "6.10.3", }, devdependencies: {     "eslint-config-airbnb": "14.1.0",     "eslint-plugin-react": "6.10.3", } 

while pre/post build steps can taken, possible tell heroku install select devdependencies?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -