You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/guides/installation.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,12 @@ npm install --save-dev webpack
28
28
npm install --save-dev webpack@<version>
29
29
```
30
30
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
+
31
37
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:
0 commit comments