Goodbye, reload button! Instead of running `npm run dev`, ``` npm run dev-server ```
will start webpack dev server that wrap flask server at `localhost:9000` and reload the page automatically (plus hot module replacement) when you change the code and save. Basically, you will go to http://localhost:9000 instead of http://localhost:8088. ### Advanced configuration By default, `webpack-dev-server` is configured for flask running at port 8088. If you start flask server at another port (e.g. 8081), you have to pass an extra argument `supersetPort` to `webpack-dev-server` ```bash npm run dev-server -- --supersetPort=8081 ``` You can also specify port for `webpack-dev-server` ```bash npm run dev-server -- --port=9001 # or with both dev-server port and superset port npm run dev-server -- --port=9001 --supersetPort=8081 ``` This will start dev server at port 9001 instead p.s. Hot Module Replacement does not fully work with React yet. It will reload the entire page instead of reloading only part of the page. This needs `react-hot-loader`, which I can work on that in a follow-up PR. [ Full content available at: https://github.com/apache/incubator-superset/pull/5786 ] This message was relayed via gitbox.apache.org for [email protected]
