Skip to content

Commit 5feb7e6

Browse files
authored
Merge pull request webpack#7174 from JLHwung/revise-examples-build-readme
docs(examples): add yarn add webpack-cli step
2 parents 4cd0cf5 + 64db306 commit 5feb7e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@
120120
If you think an example is missing, please report it as issue. :)
121121

122122
# Building an Example
123-
1. Run `npm install` in the root of the project.
124-
2. Run `npm link webpack` in the root of the project.
125-
3. Run `node build.js` in the specific example directory. (Ex: `cd examples/commonjs && node build.js`)
123+
1. Run `yarn` in the root of the project.
124+
2. Run `yarn link webpack` in the root of the project.
125+
3. Run `yarn add --dev webpack-cli` in the root of the project.
126+
4. Run `node build.js` in the specific example directory. (Ex: `cd examples/commonjs && node build.js`)
126127

127128
Note: To build all examples run `npm run build:examples`

0 commit comments

Comments
 (0)