Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@
<meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1.0" />
<meta charset="utf-8">
<title>React Router + Webpack 2 + Dynamic Chunk Navigation</title>
<link href="./style.css" media="all" rel="stylesheet" />
<link href="/style.css" media="all" rel="stylesheet" />
</head>
<body>
<div id="root"></div>
<script src="./vendor.bundle.js"></script>
<script src="./bundle.js"></script>
<script src="/vendor.bundle.js"></script>
<script src="/bundle.js"></script>
</body>
</html>
9 changes: 6 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -10,15 +10,18 @@ module.exports = {
context: path.join(__dirname, './client'),
entry: {
js: [
'index', 'pages/Home'
'index',
'pages/Home'
],
vendor: [
'react', 'react-dom'
'react',
'react-dom'
]
},
output: {
path: path.join(__dirname, './static'),
filename: 'bundle.js'
filename: 'bundle.js',
publicPath: '/'
},
module: {
loaders: [