Tentative infructueuse de refaire marcher facilement le hot reloading

Sur la page /regle, ce qui est très pratique pour améliorer l'affichage
de l'algorithme. C'est problablement notre génération du JSX dans
mecanism.js qui pose problème.
https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md
pull/82/head
mama 2017-10-09 12:05:35 +02:00
parent f27fc5c331
commit 80c7884e93
4 changed files with 4 additions and 6 deletions

View File

@ -86,7 +86,7 @@
"style-loader": "^0.18.2",
"url-loader": "^0.5.8",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.4.5"
"webpack-dev-server": "^2.9.1"
},
"scripts": {
"start": "node source/server.js",

View File

@ -14,6 +14,7 @@
"transform-object-rest-spread",
"transform-class-properties",
"syntax-dynamic-import",
"react-hot-loader/babel",
["webpack-alias", { "config": "./source/webpack.config.js" }]
]
}

View File

@ -23,12 +23,9 @@ render(
// Hot react component reloading. Unstable but helpful.
if (module.hot) {
module.hot.accept('./containers/App', () => {
// If you use Webpack 2 in ES modules mode, you can
// use <App /> here rather than require() a <NextApp />.
const NextApp = require('./containers/App').default
render(
<AppContainer>
<NextApp store={store} />
<App store={store} />
</AppContainer>,
anchor
)

View File

@ -12,8 +12,8 @@ module.exports = {
] : [
'webpack-dev-server/client?http://localhost:3000/',
'webpack/hot/only-dev-server',
'react-hot-loader/patch',
'babel-polyfill',
'react-hot-loader/patch',
'./source/entry.js'
],
output: {