Skip to content

Commit a60c9c9

Browse files
kingdaromontogeek
kingdaro
authored andcommitted
docs(guides): Added info for v4 and webpack-cli (#1888)
1 parent 2b737d0 commit a60c9c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/guides/installation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ npm install --save-dev webpack
2828
npm install --save-dev webpack@<version>
2929
```
3030

31+
If you're using webpack 4 or later, you'll also need to install the CLI.
32+
33+
``` bash
34+
npm install --save-dev webpack-cli
35+
```
36+
3137
Installing locally is what we recommend for most projects. This makes it easier to upgrade projects individually when breaking changes are introduced. Typically webpack is run via one or more [npm scripts](https://docs.npmjs.com/misc/scripts) which will look for a webpack installation in your local `node_modules` directory:
3238

3339
```json

0 commit comments

Comments
 (0)