You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I had to add headers: { 'Access-Control-Allow-Origin': '*' }, to the devServer section in webpack.config.js in order to get the hot reload to work.
This was the error message:
I found the solution on this issue: gaearon/react-hot-loader#56
My configuration:
Brand new Symfony 3.2.8
Running on 127.0.0.1:8000 (php bin/console server:start)
Running php bin/console maba:webpack:dev-server
If this solution suits you, i can make a PR.
Thanks for your work, you are saving me a lot of time !
Cheers.
The text was updated successfully, but these errors were encountered:
I've also found some related changes needed for newer webpack-dev-server in case it's ran on another host, added needed configuration parameters to readme.
Hi, I had to add
headers: { 'Access-Control-Allow-Origin': '*' },
to the devServer section inwebpack.config.js
in order to get the hot reload to work.This was the error message:
I found the solution on this issue: gaearon/react-hot-loader#56
My configuration:
php bin/console server:start
)php bin/console maba:webpack:dev-server
If this solution suits you, i can make a PR.
Thanks for your work, you are saving me a lot of time !
Cheers.
The text was updated successfully, but these errors were encountered: