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

Webpack not watching when in docker #244

Closed
dartharaknus opened this issue Oct 6, 2016 · 9 comments
Closed

Webpack not watching when in docker #244

dartharaknus opened this issue Oct 6, 2016 · 9 comments

Comments

@dartharaknus
Copy link
Member

No description provided.

@dartharaknus
Copy link
Member Author

@howardchung Can you try this on your computer?

@howardchung
Copy link
Member

Yeah, I tested and the events don't seem to be picked up by webpack-dev-server to trigger a rebuild. Not sure what the cause is.

@dartharaknus
Copy link
Member Author

Can you fix this? I can't do it on windows.

@howardchung
Copy link
Member

I don't know if it's a problem with our code that we can fix easily. My guess is that the file change events that Docker should generate (since the working directory is mapped to the docker container) aren't being recognized.

@howardchung
Copy link
Member

howardchung commented Oct 9, 2016

Maybe this?

webpack/webpack-dev-server#143 (comment)

Also a suggestion to change webpack config:
webpack/webpack-dev-server#143 (comment)

@dartharaknus
Copy link
Member Author

First suggestion didn't work for me. I can't try the config change though since I don't see any watch option anywhere at all. Remember that we run npm start which runs webpack-dev-server --compress without any watch option given.

@howardchung
Copy link
Member

It would be in the webpack.config.js file.

@dartharaknus
Copy link
Member Author

Nope, there isn't.

@howardchung
Copy link
Member

I mean, that's where it would go. It won't be one of the keys in the config object right now, you have to add it.

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

2 participants