You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* multi: Prepare for code splitting
chore: Add react-loadable to dependencies
chore: Move babel options to package.json so they can be retrieved more easily in webpack config
chore: Remove webpack patch (https://github.com/gaearon/react-hot-loader/tree/next\#no-patch-required)
chore: Update dependencies, move appropriate to devDependencies
* feat: split up todos into separate components
* chore: move templates to server folder instead
* feat: SSR + code splitting 🚀
- Add support for import() syntax in babel and use only on the server
(it is already supported on the client with webpack 2)
- Update webpack config for import() code splitting
- Fix an issue with static fetching for server data
* chore: update readme/comments
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,12 @@ A universal React/Redux boilerplate with sensible defaults. Out of the box, this
4
4
boilerplate comes with:
5
5
6
6
- Server-side rendering with Express
7
+
- Code splitting with Webpack's dynamic `import()`s and [react-loadable](https://github.com/thejameskyle/react-loadable)
7
8
- Sane [webpack configurations](webpack/)
8
9
- JS hot reloading with `react-hot-loader` and `webpack-dev-server`
9
10
- CSS, SASS and `css-modules` support with hot reloading and no [flash of unstyled content](https://en.wikipedia.org/wiki/Flash_of_unstyled_content) (`css-hot-loader`)
10
11
- Routing with `react-router-v4`
11
-
- Full production builds that do not rely on `babel`.
12
+
- Full production builds that do not rely on `babel-node`.
12
13
13
14
## Get started
14
15
@@ -161,13 +162,19 @@ Check the `.eslintignore` file for directories excluded from linting.
161
162
162
163
## Changing the public asset path
163
164
164
-
By default, assets are built into `/dist/public`. This path is then served by
165
-
express under the path `/assets`. This is the public asset path. In a production
165
+
By default, assets are built into `dist/public`. This path is then served by
166
+
express under the path `assets`. This is the public asset path. In a production
166
167
scenario, you may want your assets to be hosted on a CDN. To do so, just change
0 commit comments