diff --git a/src/content/api/cli.md b/src/content/api/cli.md index ea249c78ae70..b2200a0468df 100644 --- a/src/content/api/cli.md +++ b/src/content/api/cli.md @@ -141,6 +141,16 @@ Invocation | Resulting environment T> See the [environment variables](/guides/environment-variables) guide for more information on its usage. +### Config Options + +Parameter | Explanation | Input type | Default +------------------------- | ------------------------------------------- | ---------- | ------------------ +`--config` | Path to the config file | string | webpack.config.js or webpackfile.js +`--config-register, -r` | Preload one or more modules before loading the webpack configuration | array | +`--config-name` | Name of the config to use | string | +`--env` | Environment passed to the config, when it is a function | +`--mode` | Mode to use, either "development" or "production" | string | + ### Output Options This set of options allows you to manipulate certain [output](/configuration/output) parameters of your build. @@ -196,7 +206,7 @@ Parameter | Explanation | Input type | D `--debug` | Switch loaders to debug mode | boolean | false `--devtool` | Define [source map type](/configuration/devtool/) for the bundled resources | string | - `--progress` | Print compilation progress in percentage | boolean | false - +`--display-error-details` | Display details about errors | boolean | false ### Module Options diff --git a/src/content/api/loaders.md b/src/content/api/loaders.md index fef9b97be890..bf449f0c36ce 100644 --- a/src/content/api/loaders.md +++ b/src/content/api/loaders.md @@ -36,7 +36,7 @@ __sync-loader-with-multiple-results.js__ ``` js module.exports = function(content, map, meta) { - this.callback(null, someSyncOperation(content), sourceMaps, meta); + this.callback(null, someSyncOperation(content), map, meta); return; // always return undefined when calling callback() }; ``` diff --git a/src/content/plugins/index.md b/src/content/plugins/index.md index 4cd0ff32c596..0095b34fe755 100644 --- a/src/content/plugins/index.md +++ b/src/content/plugins/index.md @@ -6,6 +6,7 @@ contributors: - rouzbeh84 - aretecode - eko3alpha + - refactorized --- webpack has a rich plugin interface. Most of the features within webpack itself use this plugin interface. This makes webpack **flexible**. @@ -18,6 +19,7 @@ Name | Description [`CommonsChunkPlugin`](/plugins/commons-chunk-plugin) | Extract common modules shared between chunks [`CompressionWebpackPlugin`](/plugins/compression-webpack-plugin) | Prepare compressed versions of assets to serve them with Content-Encoding [`ContextReplacementPlugin`](/plugins/context-replacement-plugin) | Override the inferred context of a `require` expression +[`CopyWebpackPlugin`](/plugins/copy-webpack-plugin) | Copies individual files or entire directories to the build directory [`DefinePlugin`](/plugins/define-plugin) | Allow global constants configured at compile time [`DllPlugin`](/plugins/dll-plugin) | Split bundles in order to drastically improve build time [`EnvironmentPlugin`](/plugins/environment-plugin) | Shorthand for using the [`DefinePlugin`](./define-plugin) on `process.env` keys