mirror of https://github.com/webpack/webpack.git
Link documentation to webpack.js.org
Replaces webpack.github.io links with links to the new documentation.
This commit is contained in:
parent
760c247168
commit
ea4be07d45
|
@ -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
|
||||
documentation pages:
|
||||
|
||||
[List of loaders](https://webpack.github.io/docs/list-of-loaders.html)
|
||||
[List of plugins](https://webpack.github.io/docs/list-of-plugins.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.js.org/plugins) or [awesome-webpack](https://github.com/webpack-contrib/awesome-webpack#webpack-plugins)
|
||||
|
||||
## Setup
|
||||
|
||||
|
|
|
@ -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
|
||||
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
|
||||
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
|
||||
JavaScript** by deduplicating frequently used modules, minifying, and giving
|
||||
|
|
|
@ -15,7 +15,7 @@ try {
|
|||
} catch(e) {}
|
||||
var yargs = require("yargs")
|
||||
.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 with config file: webpack");
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ module.exports = class MovedToPluginWarningPlugin {
|
|||
compilation.warnings.push(new Error `webpack options:
|
||||
DEPRECATED option ${optionName} will be moved to the ${pluginName}.
|
||||
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/`);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
class AggressiveMergingPlugin {
|
||||
constructor(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 || {};
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
class LimitChunkCountPlugin {
|
||||
constructor(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 || {};
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
class MinChunkSizePlugin {
|
||||
constructor(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;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
class OccurrenceOrderPlugin {
|
||||
constructor(preferEntry) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue