Link documentation to webpack.js.org

Replaces webpack.github.io links with links to the new documentation.
This commit is contained in:
Simon Legner 2017-02-06 21:57:12 +01:00
parent 760c247168
commit ea4be07d45
8 changed files with 10 additions and 10 deletions

View File

@ -20,8 +20,8 @@ that include your webpack.config.js and relevant files are more likely to receiv
If you have created your own loader/plugin please include it on the relevant If you have created your own loader/plugin please include it on the relevant
documentation pages: documentation pages:
[List of loaders](https://webpack.github.io/docs/list-of-loaders.html) [List of loaders](https://webpack.js.org/loaders/) or [awesome-webpack](https://github.com/webpack-contrib/awesome-webpack#loaders)
[List of plugins](https://webpack.github.io/docs/list-of-plugins.html) [List of plugins](https://webpack.js.org/plugins) or [awesome-webpack](https://github.com/webpack-contrib/awesome-webpack#webpack-plugins)
## Setup ## Setup

View File

@ -222,12 +222,12 @@ webpack supports ES2015+, CommonJS and AMD modules **out of the box**. It perfor
analysis on the AST of your code. It even has an evaluation engine to evaluate analysis on the AST of your code. It even has an evaluation engine to evaluate
simple expressions. This allows you to **support most existing libraries** out of the box. simple expressions. This allows you to **support most existing libraries** out of the box.
### [Code Splitting](https://webpack.github.io/docs/code-splitting.html) ### [Code Splitting](https://webpack.js.org/guides/code-splitting/)
webpack allows you to split your codebase into multiple chunks. Chunks are webpack allows you to split your codebase into multiple chunks. Chunks are
loaded asynchronously at runtime. This reduces the initial loading time. loaded asynchronously at runtime. This reduces the initial loading time.
### [Optimizations](https://webpack.github.io/docs/optimization.html) ### [Optimizations](https://webpack.js.org/guides/production-build/)
webpack can do many optimizations to **reduce the output size of your webpack can do many optimizations to **reduce the output size of your
JavaScript** by deduplicating frequently used modules, minifying, and giving JavaScript** by deduplicating frequently used modules, minifying, and giving

View File

@ -15,7 +15,7 @@ try {
} catch(e) {} } catch(e) {}
var yargs = require("yargs") var yargs = require("yargs")
.usage("webpack " + require("../package.json").version + "\n" + .usage("webpack " + require("../package.json").version + "\n" +
"Usage: https://webpack.github.io/docs/cli.html\n" + "Usage: https://webpack.js.org/api/cli/\n" +
"Usage without config file: webpack <entry> [<entry>] <output>\n" + "Usage without config file: webpack <entry> [<entry>] <output>\n" +
"Usage with config file: webpack"); "Usage with config file: webpack");

View File

@ -15,7 +15,7 @@ module.exports = class MovedToPluginWarningPlugin {
compilation.warnings.push(new Error `webpack options: compilation.warnings.push(new Error `webpack options:
DEPRECATED option ${optionName} will be moved to the ${pluginName}. DEPRECATED option ${optionName} will be moved to the ${pluginName}.
Use this instead. Use this instead.
For more info about the usage of the ${pluginName} see https://webpack.github.io/docs/list-of-plugins.html`); For more info about the usage of the ${pluginName} see https://webpack.js.org/plugins/`);
}); });
} }
}; };

View File

@ -7,7 +7,7 @@
class AggressiveMergingPlugin { class AggressiveMergingPlugin {
constructor(options) { constructor(options) {
if(options !== undefined && typeof options !== "object" || Array.isArray(options)) { if(options !== undefined && typeof options !== "object" || Array.isArray(options)) {
throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html"); throw new Error("Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.js.org/plugins/");
} }
this.options = options || {}; this.options = options || {};
} }

View File

@ -7,7 +7,7 @@
class LimitChunkCountPlugin { class LimitChunkCountPlugin {
constructor(options) { constructor(options) {
if(options !== undefined && typeof options !== "object" || Array.isArray(options)) { if(options !== undefined && typeof options !== "object" || Array.isArray(options)) {
throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html"); throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.js.org/plugins/");
} }
this.options = options || {}; this.options = options || {};
} }

View File

@ -7,7 +7,7 @@
class MinChunkSizePlugin { class MinChunkSizePlugin {
constructor(options) { constructor(options) {
if(typeof options !== "object" || Array.isArray(options)) { if(typeof options !== "object" || Array.isArray(options)) {
throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.github.io/docs/list-of-plugins.html"); throw new Error("Argument should be an options object.\nFor more info on options, see https://webpack.js.org/plugins/");
} }
this.options = options; this.options = options;
} }

View File

@ -7,7 +7,7 @@
class OccurrenceOrderPlugin { class OccurrenceOrderPlugin {
constructor(preferEntry) { constructor(preferEntry) {
if(preferEntry !== undefined && typeof preferEntry !== "boolean") { if(preferEntry !== undefined && typeof preferEntry !== "boolean") {
throw new Error("Argument should be a boolean.\nFor more info on this plugin, see https://webpack.github.io/docs/list-of-plugins.html"); throw new Error("Argument should be a boolean.\nFor more info on this plugin, see https://webpack.js.org/plugins/");
} }
this.preferEntry = preferEntry; this.preferEntry = preferEntry;
} }