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

adds support to using webpack-dev-server #2545

Merged
merged 1 commit into from
Dec 23, 2017

Conversation

ohadlevy
Copy link
Member

this allow the developer to:

  • use websockets in development env without apache
  • enjoy live reload in the browser when webpack code change

to use, execute:

NODE_ENV=development ./node_modules/.bin/webpack-dev-server --config config/webpack/development.js

secure: false
},
'/ws': {
target: `ws://${settings.dev_server.host}`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing port here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@himdel do we allow to customize the port for ws (vs wss)? is it set somewhere ?

@ohadlevy
Copy link
Member Author

ohadlevy commented Nov 1, 2017

@himdel updated.

this allow the developer to:
- use websockets in development env without apache
- enjoy live reload in the browser when webpack code change

to use, execute:

NODE_ENV=development ./node_modules/.bin/webpack-dev-server --config config/webpack/development.js

you may use PORT or WS_PORT to override the default 3000 PORT.
@miq-bot
Copy link
Member

miq-bot commented Nov 7, 2017

Checked commit ohadlevy@5b4e241 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 👍

@ohadlevy
Copy link
Member Author

ohadlevy commented Nov 8, 2017

all 🍏 :-)

@mtho11
Copy link
Contributor

mtho11 commented Nov 14, 2017

This would be really great to get in soon! Current dev work with webpacks is quite slow.

@ohadlevy
Copy link
Member Author

@himdel anything I can do to move this along? thanks!

@priley86
Copy link
Member

this would be exxxxcellent... 🏆

},
proxy: {
'/': {
target: `http://${settings.dev_server.host}:${env.PORT || '3000'}`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a better ENV var name? (so that we can use with webpacker or foreman Procfile)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see what I can find..

@ohadlevy
Copy link
Member Author

anyone else who can merge this ? thanks :)

@martinpovolny martinpovolny merged commit e508443 into ManageIQ:master Dec 23, 2017
@martinpovolny martinpovolny added this to the Sprint 76 Ending Jan 1, 2018 milestone Dec 23, 2017
@martinpovolny martinpovolny self-assigned this Dec 23, 2017
@ohadlevy
Copy link
Member Author

thanks!

@ohadlevy ohadlevy deleted the webpack-dev-server branch December 23, 2017 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants