File tree Expand file tree Collapse file tree 2 files changed +21
-19
lines changed Expand file tree Collapse file tree 2 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ React-webpack2-skeleton is a lightweight React boilerplate that uses Webpack2.
9
9
- Code splitting
10
10
- Server rendering with express
11
11
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
13
15
14
16
## Requirement
15
17
Original file line number Diff line number Diff line change @@ -22,24 +22,24 @@ const renderer = (req, res) => {
22
22
res . end ( )
23
23
} else {
24
24
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>
43
43
` )
44
44
res . end ( )
45
45
}
You can’t perform that action at this time.
0 commit comments