Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Add headers to ensure HMR is working
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Dembrey committed Dec 31, 2018
1 parent 5998a3d commit c9f3f3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opentech/static_src/src/app/webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ config.plugins = config.plugins.concat([
// Add a loader for JSX files with react-hot enabled

config.devServer = {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': '*',
},
hotOnly: true,
port: 3000
}
Expand Down

0 comments on commit c9f3f3f

Please sign in to comment.