Permalink
Browse files

It's so awesome to get autoreload with so little effort!

  • Loading branch information...
lucapette committed Jan 23, 2017
1 parent 328ab19 commit 2b34d5e84f7531f5e7cd1d9a952147dff4afac3b
Showing with 488 additions and 12 deletions.
  1. +4 −2 package.json
  2. +1 −1 public/index.html
  3. +4 −1 webpack.config.js
  4. +479 −8 yarn.lock
View
@@ -14,9 +14,11 @@
"babel-preset-react": "^6.22.0",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"webpack": "2"
"webpack": "2",
"webpack-dev-server": "2"
},
"scripts": {
"start": "node_modules/.bin/webpack --config webpack.config.js"
"start": "node_modules/.bin/webpack-dev-server --open",
"build": "node_modules/.bin/webpack --config webpack.config.js"
}
}
View
@@ -5,6 +5,6 @@
<div id="root">
<!-- This div's content will be managed by React. Hopefully. -->
</div>
<script src="App.js" type="text/javascript"></script>
<script src="/App.js" type="text/javascript"></script>
</body>
</html>
View
@@ -17,7 +17,10 @@ const config = {
exclude: [/node_modules/]
}
]
}
},
devServer: {
contentBase: path.join(__dirname, "public")
},
}
module.exports = config;
Oops, something went wrong.

0 comments on commit 2b34d5e

Please sign in to comment.