Create hello world React app with hot module replacement

This commit is contained in:
2017-06-19 19:20:38 +00:00
parent 5f57586a7f
commit 888eff91d8
8 changed files with 105 additions and 3 deletions
+17 -2
View File
@@ -4,7 +4,22 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node server.js",
"build": "webpack",
"dev": "webpack-dev-server"
},
"author": ""
"author": "",
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.0.0",
"babel-preset-react": "^6.24.1",
"react-hot-loader": "^3.0.0-beta.6",
"webpack": "^3.0.0",
"webpack-dev-server": "^2.4.5"
},
"dependencies": {
"express": "^4.15.3",
"react": "^15.6.1",
"react-dom": "^15.6.1"
}
}