Skip to content

Commit 195e31a

Browse files
authored
Update README.md
1 parent b3f3cd3 commit 195e31a

1 file changed

Lines changed: 1 addition & 43 deletions

File tree

README.md

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -71,47 +71,5 @@ NOTE: As of this writing, i18n is _not_ configurable. The `initialize()` functi
7171

7272
# Testing Locally
7373

74-
If you want to test changes to frontend-platform against a micro-frontend locally, you can checkout a micro-frontend (such as frontend-app-learning) as a sibling of frontend-platform and do the following:
74+
If you want to test changes to frontend-platform against a micro-frontend locally, follow the directions here: https://github.com/edx/frontend-build#local-module-configuration-for-webpack
7575

76-
1. Build `frontend-platform` for production:
77-
78-
```
79-
cd frontend-platform
80-
npm install
81-
npm run build
82-
```
83-
84-
2. Install the built distribution's dependencies:
85-
86-
```
87-
cd dist
88-
npm install
89-
```
90-
91-
And then, in `frontend-app-learning`:
92-
93-
1. Update package.json to use the `frontend-platform/dist` directory for the `@edx/frontend-platform` dependency:
94-
95-
```
96-
dependencies: {
97-
...
98-
"@edx/frontend-platform": "file:../frontend-platform/dist",
99-
...
100-
}
101-
```
102-
2. Remove your `package-lock.json` file and `node_modules` directory:
103-
104-
```
105-
rm package-lock.json
106-
rm -r node_modules
107-
```
108-
109-
3. Install dependencies again:
110-
111-
```
112-
npm install
113-
```
114-
115-
This should cause the `dist` directory of your `frontend-platform` checkout to fulfill `frontend-app-learning`'s `@edx/frontend-platform` dependency.
116-
117-
If you then `npm start` the micro-frontend, you should be running your local frontend-platform distribution. Just remember that if you make any further changes to `frontend-platform`, you need to do this process again!

0 commit comments

Comments
 (0)