Skip to content

Commit fb9c0ff

Browse files
HusamElbashirEugeneHlushko
authored andcommitted
docs(concepts) Fix grammar in why-webpack.md (#2650)
1 parent 7ed4a62 commit fb9c0ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/concepts/why-webpack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ contributors:
88
- EugeneHlushko
99
---
1010

11-
To understand why you should use webpack let's do a recap of how we use JavaScript on the web before bundlers were a thing.
11+
To understand why you should use webpack let's do a recap of how we used JavaScript on the web before bundlers were a thing.
1212

1313
There are two ways to run JavaScript in a browser. First, include a script for each functionality you want to implement, the issue is that the solution is hard to scale as loading too many scripts causes a network bottleneck. The other alternative is to load a big .js file containing all your project code, but this results in an unmaintainable scripts that causes problems in scope, size, readability, fragility and monolith files.
1414

@@ -17,7 +17,7 @@ There are two ways to run JavaScript in a browser. First, include a script for e
1717

1818
IIFEs solve scoping issues for large projects. When script files are wrapped by an IIFE, you can safely concatenate or safely combine files without concern of scope collision.
1919

20-
This lead to tools like Make, Gulp, Grunt, Broccoli or Brunch. These tools are known as task runners and they are used, among with other purposes, to concatenate all your project files together in order to solve some of the issues mentioned before.
20+
This lead to tools like Make, Gulp, Grunt, Broccoli or Brunch. These tools are known as task runners and they are used, among other purposes, to concatenate all your project files together in order to solve some of the issues mentioned before.
2121

2222
However, anytime you want to change one file you have to rebuild the whole thing. Concatenating makes it trivial to reuse scripts across files and makes build optimizations more difficult to implement. How do you even know what code is being used and which is not?
2323

0 commit comments

Comments
 (0)