Skip to content

Commit 31ed6a4

Browse files
committed
2 parents 2e391f4 + 5673b44 commit 31ed6a4

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -251,42 +251,6 @@ Rewire Target
251251
+ [devServer](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/config/webpackDevServer.config.js): The return result of module.exports of **react-scripts/config/webpackDevServer.config.js**
252252
+ [jest](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/scripts/utils/createJestConfig.js): The return result of module.exports of **react-scripts/scripts/utils/createJestConfig.js**
253253

254-
Parameters:
255-
```js
256-
module.exports = {
257-
env: (env, NODE_ENV, script) => {
258-
// env: rewire target
259-
// NODE_ENV: process.env.NODE_ENV
260-
// script: current running script
261-
// possible values are (start | build | server | test)
262-
},
263-
paths: (paths, NODE_ENV, script) => {
264-
// paths: rewire target
265-
// NODE_ENV: process.env.NODE_ENV
266-
// script: current running script
267-
// possible values are (start | build | server | test)
268-
},
269-
webpack: (webpackConfig, NODE_ENV, script) => {
270-
// webpackConfig: rewire target
271-
// NODE_ENV: process.env.NODE_ENV
272-
// script: current running script
273-
// possible values are (start | build | server | test)
274-
},
275-
devServer: (webpackDevServerConfig, NODE_ENV, script) => {
276-
// webpackDevServerConfig: rewire target
277-
// NODE_ENV: process.env.NODE_ENV
278-
// script: current running script
279-
// possible values are (start | build | server | test)
280-
},
281-
jest: (jestConfig, NODE_ENV, script) => {
282-
// jestConfig: rewire target
283-
// NODE_ENV: process.env.NODE_ENV
284-
// script: current running script
285-
// possible values are (start | build | server | test)
286-
},
287-
};
288-
```
289-
290254
### compose
291255
You can compose multiple crs-config together to a single crs-config.
292256
```js
@@ -389,4 +353,4 @@ This package allow you to easily create your own 'react-scripts' based on 'react
389353

390354
# License
391355
-----------------
392-
MIT
356+
MIT

packages/example-universal-react-app/src/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import ReactDOMServer from 'react-dom/server';
33
import express from 'express';
44
import url from 'url';
5-
import fetch from 'node-fetch';
65
import serveStatic from 'serve-static';
76
import path from 'path';
87
import fs from 'fs';

0 commit comments

Comments
 (0)