Skip to content

Commit 5f2421b

Browse files
committed
Remove CRA specific documentation
Signed-off-by: Michael Weimann <[email protected]>
1 parent 0432268 commit 5f2421b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

containers/widget-server/README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@ The container has the following features:
1616

1717
## Usage
1818

19-
This container works best with widgets that are build in the latest Create React App (CRA) version (we recommend `>=5.0.0`).
20-
2119
### Preparations
2220

23-
1. Make sure your application doesn't rely on `unsafe-inline`.
24-
CRA provides the [`INLINE_RUNTIME_CHUNK=false` option](https://create-react-app.dev/docs/advanced-configuration/) to make it compatible with the environment.
25-
26-
2. Add `<!--#echo var="__INJECT_SCRIPT_TAG__" encoding="none"-->` before the `</head>` tag in your `index.html`:
21+
1. Add `<!--#echo var="__INJECT_SCRIPT_TAG__" encoding="none"-->` before the `</head>` tag in your `index.html`:
2722

2823
```diff
2924
<html>
@@ -37,9 +32,10 @@ This container works best with widgets that are build in the latest Create React
3732
</html>
3833
```
3934

40-
3. Make sure that your build artifacts are in the `static/` folder of your build directory have a `hash` in its name. This is the default for CRA.
35+
2. Depending on the libraries in use it may be necessary to pass the CSP nonce to them.
36+
See the [example widget's index page](../../example-widget-mui/index.html) setting it up for webpack.
4137

42-
4. Create a new Dockerfile in your repository:
38+
3. Create a new Dockerfile in your repository:
4339

4440
```Dockerfile
4541
# Use the latest version of the base image
@@ -66,7 +62,7 @@ This container works best with widgets that are build in the latest Create React
6662

6763
### Build your image
6864

69-
1. Create a production build of your widget (`npm run build` / `yarn build` in CRA).
65+
1. Create a production build of your widget: `yarn build`.
7066

7167
2. Build (`docker build .`).
7268

0 commit comments

Comments
 (0)