Skip to content

Commit 5a2631b

Browse files
authored
Merge pull request #733 from rouzbeh84/lower-case
Lower Casing webpack
2 parents 47ad8c1 + 08d434e commit 5a2631b

19 files changed

+33
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# webpack.js.org
44

5-
Guides, documentation, and all things Webpack.
5+
Guides, documentation, and all things webpack.
66

77
## Contributing
88

antwar.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = {
148148
return combineContexts(content, generated);
149149
}
150150
),
151-
151+
152152
vote: {
153153
path() {
154154
return require('./components/vote/list.jsx').default
@@ -177,7 +177,7 @@ module.exports = {
177177

178178
function root(contentCb) {
179179
return {
180-
title: 'Webpack',
180+
title: 'webpack',
181181
path: function() { // Load path content
182182
return contentCb();
183183
},

components/organization/projects.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{
1616
"repo": "webpack/loader-utils",
1717
"npm": "loader-utils",
18-
"description": "Webpack loader utilities.",
18+
"description": "webpack loader utilities.",
1919
"maintainer": "sokra"
2020
},
2121
{
@@ -289,4 +289,3 @@
289289
"maintainer": "thelarkinn"
290290
}
291291
]
292-

components/site/site.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export default props => {
2828
}))
2929
}));
3030

31-
// Rename the root section ("Webpack" => "Other") and push it to the end
32-
let rootIndex = sections.findIndex(section => section.title === 'Webpack');
31+
// Rename the root section ("webpack" => "Other") and push it to the end
32+
let rootIndex = sections.findIndex(section => section.title === 'webpack');
3333
let rootSection = sections.splice(rootIndex, 1)[0];
3434
rootSection.title = 'Other';
3535
sections.push(rootSection);

content/concepts/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ contributors:
77
- rouzbeh84
88
---
99

10-
Options affecting the output of the compilation. `output` options tell Webpack how to write the compiled files to disk. Note, that while there can be multiple `entry` points, only one `output` configuration is specified.
10+
Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk. Note, that while there can be multiple `entry` points, only one `output` configuration is specified.
1111

1212
If you use any hashing (`[hash]` or `[chunkhash]`), make sure to have a consistent ordering of modules. Use the `OccurrenceOrderPlugin` or `recordsPath`.
1313

content/configuration/entry-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ contributors:
77
- tarang9211
88
---
99

10-
The entry object is where Webpack looks to start building the bundle. The context is an absolute string to the directory that contains the entry files.
10+
The entry object is where webpacklooks to start building the bundle. The context is an absolute string to the directory that contains the entry files.
1111

1212
## `context`
1313

content/configuration/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ contributors:
1010
- terinjokes
1111
---
1212

13-
Webpack is fed via a configuration object. It is passed in one of two ways depending on how you are using webpack: through the terminal or via Node.js. All the available configuration options are specified below.
13+
webpack is fed via a configuration object. It is passed in one of two ways depending on how you are using webpack: through the terminal or via Node.js. All the available configuration options are specified below.
1414

1515
T> New to webpack? Check out our guide to some of webpack's [core concepts](/concepts) to get started!
1616

@@ -148,7 +148,7 @@ var path = require('path');
148148
149149
[loader](/configuration/module#rule-loader): "babel-loader",
150150
// the loader which should be applied, it'll be resolved relative to the context
151-
// -loader suffix is no longer optional in Webpack 2 for clarity reasons
151+
// -loader suffix is no longer optional in webpack2 for clarity reasons
152152
// see [webpack 1 upgrade guide](/guides/migrating)
153153
154154
[options](/configuration/module#rule-options-rule-query): {

content/configuration/watch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ contributors:
77
- SpaceK33z
88
---
99

10-
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can make if watching does not properly for you.
10+
webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can make if watching does not properly for you.
1111

1212
## `watch`
1313

content/development/how-to-write-a-plugin.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ title: How to write a plugin?
33
sort: 2
44
---
55

6-
Plugins expose the full potential of the Webpack engine to third-party developers. Using staged build callbacks, developers can introduce their own behaviors into the Webpack build process. Building plugins is a bit more advanced than building loaders, because you'll need to understand some of the Webpack low-level internals to hook into them. Be prepared to read some source code!
6+
Plugins expose the full potential of the webpack engine to third-party developers. Using staged build callbacks, developers can introduce their own behaviors into the webpack build process. Building plugins is a bit more advanced than building loaders, because you'll need to understand some of the webpack low-level internals to hook into them. Be prepared to read some source code!
77

88
## Compiler and Compilation
99

10-
Among the two most important resources while developing plugins are the `compiler` and `compilation` objects. Understanding their roles is an important first step in extending the Webpack engine.
10+
Among the two most important resources while developing plugins are the `compiler` and `compilation` objects. Understanding their roles is an important first step in extending the webpack engine.
1111

12-
- The `compiler` object represents the fully configured Webpack environment. This object is built once upon starting Webpack, and is configured with all operational settings including options, loaders, and plugins. When applying a plugin to the Webpack environment, the plugin will receive a reference to this compiler. Use the compiler to access the main Webpack environment.
12+
- The `compiler` object represents the fully configured webpack environment. This object is built once upon starting webpack, and is configured with all operational settings including options, loaders, and plugins. When applying a plugin to the webpack environment, the plugin will receive a reference to this compiler. Use the compiler to access the main webpack environment.
1313

14-
- A `compilation` object represents a single build of versioned assets. While running Webpack development middleware, a new compilation will be created each time a file change is detected, thus generating a new set of compiled assets. A compilation surfaces information about the present state of module resources, compiled assets, changed files, and watched dependencies. The compilation also provides many callback points at which a plugin may choose to perform custom actions.
14+
- A `compilation` object represents a single build of versioned assets. While running webpack development middleware, a new compilation will be created each time a file change is detected, thus generating a new set of compiled assets. A compilation surfaces information about the present state of module resources, compiled assets, changed files, and watched dependencies. The compilation also provides many callback points at which a plugin may choose to perform custom actions.
1515

16-
These two components are an integral part of any Webpack plugin (especially a `compilation`), so developers will benefit by familiarizing themselves with these source files:
16+
These two components are an integral part of any webpack plugin (especially a `compilation`), so developers will benefit by familiarizing themselves with these source files:
1717

1818
- [Compiler Source](https://github.com/webpack/webpack/blob/master/lib/Compiler.js)
1919
- [Compilation Source](https://github.com/webpack/webpack/blob/master/lib/Compilation.js)
2020

2121
## Basic plugin architecture
2222

23-
Plugins are instanceable objects with an `apply` method on their prototype. This `apply` method is called once by the Webpack compiler while installing the plugin. The `apply` method is given a reference to the underlying Webpack compiler, which grants access to compiler callbacks. A simple plugin is structured as follows:
23+
Plugins are instanceable objects with an `apply` method on their prototype. This `apply` method is called once by the webpack compiler while installing the plugin. The `apply` method is given a reference to the underlying webpack compiler, which grants access to compiler callbacks. A simple plugin is structured as follows:
2424

2525
```javascript
2626
function HelloWorldPlugin(options) {
@@ -36,7 +36,7 @@ HelloWorldPlugin.prototype.apply = function(compiler) {
3636
module.exports = HelloWorldPlugin;
3737
```
3838

39-
Then to install the plugin, just include an instance in your Webpack config `plugins` array:
39+
Then to install the plugin, just include an instance in your webpack config `plugins` array:
4040

4141
```javascript
4242
var HelloWorldPlugin = require('hello-world');
@@ -115,7 +115,7 @@ FileListPlugin.prototype.apply = function(compiler) {
115115
filelist += ('- '+ filename +'\n');
116116
}
117117

118-
// Insert this list into the Webpack build as a new file asset:
118+
// Insert this list into the webpack build as a new file asset:
119119
compilation.assets['filelist.md'] = {
120120
source: function() {
121121
return filelist;

content/development/plugin-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = MyPlugin;
5151

5252
### Monitoring the watch graph
5353

54-
While running Webpack middleware, each compilation includes a `fileDependencies` array (what files are being watched) and a `fileTimestamps` hash that maps watched file paths to a timestamp. These are extremely useful for detecting what files have changed within the compilation:
54+
While running webpack middleware, each compilation includes a `fileDependencies` array (what files are being watched) and a `fileTimestamps` hash that maps watched file paths to a timestamp. These are extremely useful for detecting what files have changed within the compilation:
5555

5656
```javascript
5757
function MyPlugin() {

0 commit comments

Comments
 (0)