Skip to content

Commit

Permalink
📦 NEW: Added @hot-loader/react-dom on dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
luangjokaj committed Apr 15, 2019
1 parent bdbcac4 commit b65baba
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/webpack.dev-client.js
Expand Up @@ -76,6 +76,11 @@ module.exports = {
},
],
},
resolve: {
alias: {
'react-dom': '@hot-loader/react-dom',
},
},
plugins: [
new MiniCssExtractPlugin({
filename: '[name].css',
Expand Down
5 changes: 5 additions & 0 deletions config/webpack.dev-server.js
Expand Up @@ -66,6 +66,11 @@ module.exports = {
},
],
},
resolve: {
alias: {
'react-dom': '@hot-loader/react-dom',
},
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -20,6 +20,7 @@
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.4.0",
"@babel/runtime": "^7.4.3",
"@hot-loader/react-dom": "^16.8.6",
"@intervolga/optimize-cssnano-plugin": "^1.0.6",
"accepts": "^1.3.5",
"babel-eslint": "^10.0.1",
Expand Down

0 comments on commit b65baba

Please sign in to comment.