Skip to content

Commit 7b60325

Browse files
authored
Merge pull request #681 from mithun-daa/patch-2
Update index.md
2 parents 1c53ed5 + 7a05de1 commit 7b60325

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

content/get-started/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ npm init -y
2121
npm install --save-dev webpack@beta
2222
./node_modules/.bin/webpack --help # Shows a list of valid cli commands
2323
.\node_modules\.bin\webpack --help # For windows users
24-
npm install --save lodash
2524
```
2625

2726
Now create a subdirectory `app` with an `index.js` file.
@@ -65,7 +64,13 @@ There are problems with managing JavaScript projects this way:
6564
- If a dependency is missing, or is included in the wrong order, the application will not function at all.
6665
- If a dependency is included but is not used, then there is a lot of unnecessary code that the browser has to download.
6766

68-
To bundle the `lodash` dependency with `index.js`, we need to import `lodash` from `index.js`.
67+
To bundle the `lodash` dependency with `index.js`, we need to first install `lodash`
68+
69+
```
70+
npm install --save lodash
71+
```
72+
73+
and then import it.
6974

7075
__app/index.js__
7176

0 commit comments

Comments
 (0)