Skip to content

Commit 96d931e

Browse files
committed
Merge pull request AriaFallah#11 from bngsudheer/master
📝 Some grammar fixes
2 parents 8cfee8b + 4ea666c commit 96d931e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

part1/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,26 @@ Because every single react/redux tutorial assumes you know it :cry:
4747

4848
More realistically here are some reasons you would want to use webpack.
4949

50-
* Lets you
50+
Lets you:
5151
* Bundle your js files into a single file
5252
* Use npm packages in your frontend code
53-
* Write ES6/ES7 javascript (with help from babel)
53+
* Write ES6/ES7 JavaScript (with help from babel)
5454
* Minify/Optimize code
5555
* Turn LESS/SCSS into CSS
5656
* Use HMR (Hot Module Replacement)
57-
* Include any type of file into your javascript
57+
* Include any type of file into your JavaScript
5858
* A lot more advanced stuff, which I won't cover
5959

6060
##### Why do I want these features?
6161

62-
* Bundle js files - Lets you write modular javascript, but you do not need to include a separate
63-
`<script>` tag for each js file. (Configurable in case you do need more than one js file)
62+
* Bundle JS files - Lets you write modular JavaScript, but you do not need to include a separate
63+
`<script>` tag for each JS file. (Configurable in case you do need more than one js file)
6464

6565
* Use npm packages in your frontend code - npm is the biggest ecosystem of open source code on the
6666
internet. Chances are you can save writing code by taking a look at npm, and including the packages
6767
you want in your frontend.
6868

69-
* ES6/ES7 - Adds lots of features to javascript that makes it more powerful and easier to write.
69+
* ES6/ES7 - Adds lots of features to JavaScript that makes it more powerful and easier to write.
7070
[Look here for an intro](https://github.com/DrkSephy/es6-cheatsheet).
7171

7272
* Minify/Optimize Code - Reduces the size of file that you're distributing. Benefits include things
@@ -79,7 +79,7 @@ like faster page loads.
7979
without requiring a full page refresh. This is really handy if you need to maintain the state of the
8080
page while you are editing your code.
8181

82-
* Include any type of file into your javascript - Reduces need for other build tools, and allows you
82+
* Include any type of file into your JavaScript - Reduces need for other build tools, and allows you
8383
to programmatically modify/use those files.
8484

8585
## The Basics
@@ -115,7 +115,7 @@ If you want to use a config file with webpack with a custom name:
115115

116116
![Official Dependency Tree](http://i.imgur.com/YU4xBPQ.png)
117117

118-
Webpack is formally referred to as a module bundler. If you want an indepth and accessible explanation
118+
Webpack is formally referred to as a module bundler. If you want an in-depth and accessible explanation
119119
on modules and module bundling definitely check out these two great articles:
120120
[here](https://medium.freecodecamp.com/javascript-modules-a-beginner-s-guide-783f7d7a5fcc#.jw1txw6uh)
121121
and [here](https://medium.com/@preethikasireddy/javascript-modules-part-2-module-bundling-5020383cf306#.lfnspler2).
@@ -180,10 +180,10 @@ The things that are bundled are only the things that you explicitly required acr
180180
### Loaders
181181

182182
As you probably noticed, I did something strange in the above example. I `required` a css file in
183-
a javascript file.
183+
a JavaScript file.
184184

185185
The really cool, and interesting thing about webpack is that you can `require` more than just
186-
javascript files.
186+
JavaScript files.
187187

188188
There is this thing in webpack called a loader. Using these loaders, you can
189189
`require` anything from `.css` and `.html` to `.png` files.
@@ -203,7 +203,7 @@ This is just a single example of the many loaders you can use with webpack.
203203
### Plugins
204204

205205
Plugins, like the name suggests, add extra functionality to webpack. One frequently used plugin is
206-
the `UglifyJsPlugin`, which lets you minify your javascript code. We'll cover how to use this later.
206+
the `UglifyJsPlugin`, which lets you minify your JavaScript code. We'll cover how to use this later.
207207

208208
## Your Config File
209209

@@ -306,7 +306,7 @@ You can also add the [OrderOccurencePlugin](https://webpack.github.io/docs/list-
306306
307307
To be honest I'm not sure how the underlying mechanisms work, but in the current [webpack2 beta it's included by default](https://gist.github.com/sokra/27b24881210b56bbaff7) so I include it as well.
308308

309-
```javascript
309+
```JavaScript
310310
// webpack.config.js
311311
var path = require('path')
312312
var webpack = require('webpack')
@@ -328,14 +328,14 @@ module.exports = {
328328
}
329329
```
330330

331-
So now we have written a config that allows us to minify and bundle our javascript. This bundle
331+
So now we have written a config that allows us to minify and bundle our JavaScript. This bundle
332332
could be copied and pasted into another project's directory, and thrown into a `<script>` tag there.
333333
You can skip to the [conclusion](#conclusion) if you only care about the basics of using webpack
334-
with *only javascript*.
334+
with *only JavaScript*.
335335

336336
## A More Complete Example
337337

338-
Alternatively, because webpack can do more than just work with javascript, you can avoid the
338+
Alternatively, because webpack can do more than just work with JavaScript, you can avoid the
339339
copy-pasting and manage your entire project with webpack.
340340

341341
In the following section, we are going to create a very simple website using webpack. If you wish to
@@ -357,7 +357,7 @@ MyDirectory
357357
1. [Introducing Loaders](#introducing-loaders) - We will add loaders, which allow us to add CSS to our bundle.
358358
2. [Adding More Plugins](#adding-more-plugins) - We will add a plugin that'll help us create/use an HTML file.
359359
3. [The Development Server](#the-development-server) - We'll split our webpack config into separate `development` and `production` files. Then use the webpack-dev-server to view our website and enable HMR.
360-
4. [Start Coding](#start-coding) - We will actually write some javascript.
360+
4. [Start Coding](#start-coding) - We will actually write some JavaScript.
361361

362362
#### Introducing Loaders
363363

@@ -405,7 +405,7 @@ Going over the new properties one by one:
405405
* test - A regular expression to match the loader with a file
406406
* loaders - Which loaders to use for files that match the test
407407

408-
This time when you run `webpack`, if we `require` a file that ends in `.css`, then we will apply
408+
This time when you run `webpack`, if you `require` a file that ends in `.css`, then we will apply
409409
the `style` and `css` loaders to it, which adds the CSS to the bundle.
410410

411411
If we didn't have the loaders,
@@ -692,7 +692,7 @@ but I left it separate because I feel like it lengthens the tutorial for too tri
692692
[Example 7](https://github.com/AriaFallah/WebpackTutorial/tree/master/part1/example7)
693693

694694
The reason most people seem to be flustered by webpack is the fact that they need to go through all
695-
of this to get to the point where they finally write javascript; however, now we have arrived at the
695+
of this to get to the point where they finally write JavaScript; however, now we have arrived at the
696696
climax of our tutorial.
697697

698698
Just in case you haven't already: do `npm run dev`, and navigate to `http://localhost:8080`. Setting

0 commit comments

Comments
 (0)