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
Post a Comment