-
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
DevDependencies vs Dependencies #160
Comments
Hey @artemgurzhii, please checkout this issue - #117, it's discussed here. Feel free to close this issue, if that answers your question :) |
Will something like this solve problem? if ENV['NODE_ENV'] == 'production'
run './bin/yarn add webpack webpack-merge path-complete-extname babel-loader babel-core babel-preset-env coffee-loader coffee-script compression-webpack-plugin rails-erb-loader glob'
run './bin/yarn add --dev webpack-dev-server'
else
run './bin/yarn add --dev webpack webpack-merge path-complete-extname babel-loader babel-core babel-preset-env coffee-loader coffee-script compression-webpack-plugin rails-erb-loader glob webpack-dev-server' |
@artemgurzhii This installer is run only once, when you add webpacker using
btw, what are your concerns on this? If you look at the webpack config files, you will see the dependencies that are being installed as |
@gauravtiwari Haven't thought about that, thanks for explaining) |
Current behaviour
expected
Installed via yarn packages should be added to the
devDependencies
as they used only in development.The text was updated successfully, but these errors were encountered: