Skip to content

Commit f17582d

Browse files
committed
changed README
1 parent 68d580b commit f17582d

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ React-webpack2-skeleton is a lightweight React boilerplate that uses Webpack2.
99
- Code splitting
1010
- Server rendering with express
1111

12-
> Code Splitting only works in production mode
12+
> babel-loader configuration is same as create-react-app
13+
14+
> code splitting only works in production mode
1315
1416
## Requirement
1517

src/serverRenderer.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ const renderer = (req, res) => {
2222
res.end()
2323
} else {
2424
res.write(`
25-
<!DOCTYPE html>
26-
27-
<head>
28-
<meta charset="utf-8">
29-
<meta name="viewport" content="width=device-width,initial-scale=1">
30-
<title>React App</title>
31-
<link href="static/css/main.css" rel="stylesheet">
32-
</head>
33-
34-
<body>
35-
<div id="root">
36-
${html}
37-
</div>
38-
<script type="text/javascript" src="static/js/vendor.js"></script>
39-
<script type="text/javascript" src="static/js/main.bundle.js"></script>
40-
</body>
41-
42-
</html>
25+
<!DOCTYPE html>
26+
27+
<head>
28+
<meta charset="utf-8">
29+
<meta name="viewport" content="width=device-width,initial-scale=1">
30+
<title>React App</title>
31+
<link href="static/css/main.css" rel="stylesheet">
32+
</head>
33+
34+
<body>
35+
<div id="root">
36+
${html}
37+
</div>
38+
<script type="text/javascript" src="static/js/vendor.js"></script>
39+
<script type="text/javascript" src="static/js/main.bundle.js"></script>
40+
</body>
41+
42+
</html>
4343
`)
4444
res.end()
4545
}

0 commit comments

Comments
 (0)