diff --git a/README.md b/README.md index 4d49de252..452cfc73f 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ define(["amd-module", "../file"], function (amdModule, file) { // this is async require(["big-module/big/file"], function (big) { // For async dependencies, webpack splits - // your application into multiple "chunks." + // your application into multiple "chunks". // This part of your application is // loaded on demand (code-splitting). var stuff = require("../my/stuff"); diff --git a/examples/README.md b/examples/README.md index 4a1aa3c63..fca4b15d8 100644 --- a/examples/README.md +++ b/examples/README.md @@ -2,7 +2,7 @@ ## commonjs -example demonstrating a very simple programm +example demonstrating a very simple program ## code-splitting @@ -10,11 +10,11 @@ example demonstrating a very simple case of Code Splitting. ## require.resolve -example demonstrating to cache clearing of modules with `require.resolve` and `require.cache`. +example demonstrating how to cache clearing of modules with `require.resolve` and `require.cache`. ## require.context -example demonstrating to automatic creation of contexts when using variables in `require`. +example demonstrating automatic creation of contexts when using variables in `require`. ## code-splitted-require.context @@ -26,7 +26,7 @@ example demonstrating contexts in a code-split environment with AMD. ## loader -example demonstrating to usage of loaders. +example demonstrating the usage of loaders. ## coffee-script @@ -46,7 +46,7 @@ example demonstrating Labeled Modules ## mixed -example demonstrating mixing CommonJs, AMD and Labeled Modules +example demonstrating mixing CommonJs, AMD, and Labeled Modules ## web-worker @@ -62,7 +62,7 @@ example demonstrating multiple entry points with Code Splitting. # Requests -If you think a example is missing, please report it as issue. :) +If you think an example is missing, please report it as issue. :) # Build diff --git a/lib/Compilation.js b/lib/Compilation.js index f98351b4b..497a8d212 100644 --- a/lib/Compilation.js +++ b/lib/Compilation.js @@ -171,7 +171,7 @@ Compilation.prototype.addModuleDependencies = function(module, dependencies, bai for(var i = 0; i < dependencies.length; i++) { var factory = this.dependencyFactories.get(dependencies[i][0].Class); if(!factory) { - return callback(new Error("No module factory availible for dependency type: " + dependencies[i][0].Class.name)); + return callback(new Error("No module factory available for dependency type: " + dependencies[i][0].Class.name)); } factories[i] = [factory, dependencies[i]]; } @@ -342,7 +342,7 @@ Compilation.prototype._addModuleChain = function process(context, dependency, on var moduleFactory = this.dependencyFactories.get(dependency.Class); if(!moduleFactory) { - throw new Error("No dependency factory availible for this dependency type: " + dependency.Class.name); + throw new Error("No dependency factory available for this dependency type: " + dependency.Class.name); } moduleFactory.create(context, dependency, function(err, module) { @@ -427,7 +427,7 @@ Compilation.prototype.addEntry = function process(context, entry, name, callback if(module) { if(module.reasons.length > 0) { - return callback(new Error("module cannot be added as entry point, because its already in the bundle")); + return callback(new Error("module cannot be added as entry point, because it's already in the bundle")); } this.preparedChunks.push({ name: name, diff --git a/lib/NormalModule.js b/lib/NormalModule.js index dbda17936..a62908743 100644 --- a/lib/NormalModule.js +++ b/lib/NormalModule.js @@ -107,7 +107,7 @@ NormalModule.prototype.source = function(dependencyTemplates, outputOptions, req return this._cachedSource.source; } var _source = this._source; - if(!_source) return new RawSource("throw new Error('No source availible');"); + if(!_source) return new RawSource("throw new Error('No source available');"); var source = new ReplaceSource(_source); this._cachedSource = { source: source, hash: hash }; var topLevelBlock = this;