From f9194f746b8de16807428949f4629e7d43f0a614 Mon Sep 17 00:00:00 2001 From: kingdaro Date: Wed, 7 Mar 2018 20:00:50 -0500 Subject: [PATCH] docs(guides/installation): added info for v4 and webpack-cli --- src/content/guides/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/content/guides/installation.md b/src/content/guides/installation.md index 1c6268738a01..cf35d1ca784e 100644 --- a/src/content/guides/installation.md +++ b/src/content/guides/installation.md @@ -28,6 +28,12 @@ npm install --save-dev webpack npm install --save-dev webpack@ ``` +If you're using webpack 4 or later, you'll also need to install the CLI. + +``` bash +npm install --save-dev webpack-cli +``` + 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: ```json