-
Notifications
You must be signed in to change notification settings - Fork 519
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
How to use webpack_dev_server? #2098
Comments
I don't believe ibazel and webpack_dev_server work together. You just use webpack_dev_server. Here's how I'm using it.
|
Thanks for the reply! Correct me if I'm wrong, but my impression is that without If that's right, how do you support live reloading? Is the best method just |
In our case, we don't have any references to other targets in the workspace, only @npm// references. That may be why it's working for us without running ibazel. I've always assumed that HMR would be pointless if you have ibazel launching webpack_dev_server because ibazel would restart it anytime files change. One workaround to try would be creating a target that had all of the monorepo references needed by the web-app and running an ibazel on that concurrently with webpack_dev_server |
Interesting point about Re: the second paragraph, adding |
This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
@mrmeku has started a new effort for a dedicated webpack rule |
That's great news! Thanks!
Happy to help however I can.
…On Tue, Oct 20, 2020, 20:48 Alex Eagle ***@***.***> wrote:
@mrmeku <https://github.com/mrmeku> has started a new effort for a
dedicated webpack rule
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2098 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3RB7R5W7BUPVSUINGFWDDSLZKZBANCNFSM4PU6NZ2Q>
.
|
@pward123 could you share and your webpack config? What I see is that webpack-dev-server is started from root directory and is not able to find properly the entry point and source files. All examples in the repository are using root as starting point and the examples are working fine but this is not a case when you have multiple apps in separate folders each (in my case: few apps that needs to be migrated to use bazel-like way). |
I found #1255, which seems to suggest that ibazel works with webpack_dev_server in
examples/react_webpack
. It's not clear how webpack_dev_server is involved in that example, however. Could you help explain?The text was updated successfully, but these errors were encountered: