Skip to content

Commit 82bb3c1

Browse files
committed
Update instructions for installing webpack 2
1 parent 93714eb commit 82bb3c1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

content/get-started/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Create a demo directory to try out webpack. [Install webpack](/get-started/insta
1717
```bash
1818
mkdir webpack-demo && cd webpack-demo
1919
npm init -y
20-
npm install --save-dev webpack
20+
npm install --save-dev webpack@beta
2121
./node_modules/.bin/webpack --help # Shows a list of valid cli commands
2222
.\node_modules\.bin\webpack --help # For windows users
2323
npm install --save lodash

content/get-started/install-webpack.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ sort: 1
1010

1111
Before getting started, make sure you have a fresh version of [Node.js](https://nodejs.org/en/) installed. The current LTS is an ideal starting point. You may run into a variety of issues with the older versions as they may be missing functionality webpack or related packages might need.
1212

13+
Note that this documentation is for webpack 2, for which there is not yet a stable release. You can get the most recent beta by installing with the `beta` tag (see below).
14+
1315
### Global Installation
1416

1517
``` bash
16-
npm install webpack -g
18+
npm install webpack@beta -g
1719
```
1820

1921
The `webpack` command is now available globally.
@@ -23,7 +25,7 @@ However, this is not a recommended practice. This locks you down to a specific v
2325
### Local Installation
2426

2527
``` bash
26-
npm install webpack --save-dev
28+
npm install webpack@beta --save-dev
2729

2830
npm install webpack@<version> --save-dev
2931
```

0 commit comments

Comments
 (0)