-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack executable not found on production #117
Comments
Background: right now we're putting build deps under Pretty sure that setting I think the "correct" solution would be to move everything under |
Heroku as well as other deployment strategies don't currently work out of the box. I have further bloated the README with some instructions on how to make them work. See rails#117 for an example of the issue and what might be a better ultimate solution.
Heroku as well as other deployment strategies don't currently work out of the box. I have further bloated the README with some instructions on how to make them work. See rails#117 for an example of the issue and what might be a better ultimate solution.
@dleavitt The only things that should go under devDependencies are things like eslint, flow, the webpack dev server. Any build tools need to be under "dependencies. |
Indeed, that's what I was (trying to) say above. Sure makes package.json prettier when you do it the wrong way though. |
Yes let's fix the root issue and move away from errant use of devDependencies.
… On Feb 27, 2017, at 17:48, Daniel Leavitt ***@***.***> wrote:
Indeed, that's what I was (trying to) say above. Sure makes package.json prettier when you do it the wrong way though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Related to #116. Basically, when using the --production flag, or NODE_ENV=production environment variable, Yarn will not install any package listed in devDependencies. https://yarnpkg.com/lang/en/docs/cli/install/#toc-yarn-install-production
In our config files we are using packages that also needs to be available on production to compile the assets. Therefore, the dependencies which are used in production should be moved to dependencies block instead of devDependencies.
I can make a PR once #111 is merged
The text was updated successfully, but these errors were encountered: