Skip to content
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

bin/webpacker-dev-server not optional #988

Closed
bbuchalter opened this issue Nov 1, 2017 · 7 comments
Closed

bin/webpacker-dev-server not optional #988

bbuchalter opened this issue Nov 1, 2017 · 7 comments

Comments

@bbuchalter
Copy link

Although there are many references to the webpacker-dev-server being optional, the presence of bin/webpacker-dev-server is enforced by the check_binstubs rake task.

Is there interest in making this guard more intelligent? Just remove it? Or be OK with folks adding dummy binstubs?

@gauravtiwari
Copy link
Member

@bbuchalter Are you facing any issues due to it's presence? Please consider removing it manually if not needed - rm -rf bin/webpack-dev-server.

@bbuchalter
Copy link
Author

Are you facing any issues due to it's presence?

Well, I removed webpack-dev-server from my stack because of recent changes that many people are complaining about [0] and it just doesn't make sense to leave the file in the repo.

[0]: Just a few issues opened recently on one topic in particular that seems to impact the Rails community in particular:
webpack/webpack-dev-server#1170
webpack/webpack-dev-server#1144
webpack/webpack-dev-server#1143
webpack/webpack-dev-server#1136
webpack/webpack-dev-server#1101
webpack/webpack-dev-server#1104
webpack/webpack-dev-server#1084

@stewart
Copy link

stewart commented Nov 14, 2017

Hi there!

For some additional context, we ran into the issues @bbuchalter noted with webpack-dev-server a short while back, and decided to remove it from our project, as we weren't getting significant benefits from it, and downgrading caused further issues.

However, after removing the associated binstub (bin/webpack-dev-server), we found we were no longer able to deploy our application, as webpacker's extension of the assets:precompile Rake task adds the webpacker:check_webpack_binstubs task as a dependency. This blows up, as we removed the dev server binstub.

Our (hopefully temporary) solution to this problem is an empty binstub that exists only to satisfy this one Rake task.

I believe that this check is overly aggressive, as webpack-dev-server is an optional component of a Webpack environment, and is certainly not needed to precompile assets. If a PR to modify the check_webpack_binstubs Rake task to remove this assertion is welcome, please let me know.

@gauravtiwari
Copy link
Member

gauravtiwari commented Nov 15, 2017

@stewart Yeah, makes sense. Lets make webpack-dev-server binstub optional in rake check task.

@gauravtiwari gauravtiwari reopened this Nov 15, 2017
@ketan
Copy link
Contributor

ketan commented Nov 15, 2017

Is someone working on this PR, if not I think I can whip one up. It's affecting me as well.

ketan added a commit to ketan/webpacker that referenced this issue Nov 15, 2017
@ketan
Copy link
Contributor

ketan commented Nov 15, 2017

Oh well, #1012, seemed straight forward :)

@bbuchalter
Copy link
Author

Thanks for helping move this forward! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants