Skip to content

Commit f1d6835

Browse files
committed
More updates
1 parent ec11892 commit f1d6835

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/guides/how-to-use-different-files-for-client-and-server-rendering.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Note that the only difference is in the imports.
2828

2929
Per [Webpack Docs](https://webpack.js.org/configuration/resolve/#resolve-alias).
3030

31-
### 1. Update `webpack/set-resolve.js` to have a different resolution for the exact file:
31+
### 1. Update `webpack/set-resolve.js` to have a different resolution for the exact file
3232

3333
```js
3434
function setResolve(builderConfig, webpackConfig) {
@@ -55,9 +55,9 @@ Then you have this import:
5555
import SomeJsFile from 'SomeJsFile';
5656
```
5757
58-
### 2. Use a different resolution for the right directory of client or server files:
58+
### 2. Use a different resolution for the right directory of client or server files
5959
60-
#### a. Update `webpack/set-resolve.js` to have something like:
60+
#### a. Update `webpack/set-resolve.js` to have something like
6161
6262
```js
6363
function setResolve(builderConfig, webpackConfig) {
@@ -80,7 +80,7 @@ function setResolve(builderConfig, webpackConfig) {
8080
8181
#### b. Add different versions of the file to the `bundles/variant/ClientOnly` and `bundles/variant/ServerOnly` directories
8282
83-
#### c. Use the `variant` in import in a file that can be used both for client and server rendering:
83+
#### c. Use the `variant` in import in a file that can be used both for client and server rendering
8484
8585
```js
8686
import SomeJsFile from 'variant/SomeJsFile';

spec/dummy/client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ yarn global add npm-check-updates
2727
```
2828

2929
```bash
30-
# Make sure you are in the `client` directory, then run:
30+
# Make sure you are in the `client` directory, then run
3131
cd client
3232
npm-check-updates -u -a
3333
yarn

0 commit comments

Comments
 (0)