File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,16 @@ Invocation | Resulting environment
141
141
142
142
T> See the [ environment variables] ( /guides/environment-variables ) guide for more information on its usage.
143
143
144
+ ### Config Options
145
+
146
+ Parameter | Explanation | Input type | Default
147
+ ------------------------- | ------------------------------------------- | ---------- | ------------------
148
+ ` --config ` | Path to the config file | string | webpack.config.js or webpackfile.js
149
+ ` --config-register, -r ` | Preload one or more modules before loading the webpack configuration | array |
150
+ ` --config-name ` | Name of the config to use | string |
151
+ ` --env ` | Environment passed to the config, when it is a function |
152
+ ` --mode ` | Mode to use, either "development" or "production" | string |
153
+
144
154
### Output Options
145
155
146
156
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
196
206
` --debug ` | Switch loaders to debug mode | boolean | false
197
207
` --devtool ` | Define [ source map type] ( /configuration/devtool/ ) for the bundled resources | string | -
198
208
` --progress ` | Print compilation progress in percentage | boolean | false
199
-
209
+ ` --display-error-details ` | Display details about errors | boolean | false
200
210
201
211
### Module Options
202
212
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ __sync-loader-with-multiple-results.js__
36
36
37
37
``` js
38
38
module .exports = function (content , map , meta ) {
39
- this .callback (null , someSyncOperation (content), sourceMaps , meta);
39
+ this .callback (null , someSyncOperation (content), map , meta);
40
40
return ; // always return undefined when calling callback()
41
41
};
42
42
```
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ contributors:
6
6
- rouzbeh84
7
7
- aretecode
8
8
- eko3alpha
9
+ - refactorized
9
10
---
10
11
11
12
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
18
19
[ ` CommonsChunkPlugin ` ] ( /plugins/commons-chunk-plugin ) | Extract common modules shared between chunks
19
20
[ ` CompressionWebpackPlugin ` ] ( /plugins/compression-webpack-plugin ) | Prepare compressed versions of assets to serve them with Content-Encoding
20
21
[ ` ContextReplacementPlugin ` ] ( /plugins/context-replacement-plugin ) | Override the inferred context of a ` require ` expression
22
+ [ ` CopyWebpackPlugin ` ] ( /plugins/copy-webpack-plugin ) | Copies individual files or entire directories to the build directory
21
23
[ ` DefinePlugin ` ] ( /plugins/define-plugin ) | Allow global constants configured at compile time
22
24
[ ` DllPlugin ` ] ( /plugins/dll-plugin ) | Split bundles in order to drastically improve build time
23
25
[ ` EnvironmentPlugin ` ] ( /plugins/environment-plugin ) | Shorthand for using the [ ` DefinePlugin ` ] ( ./define-plugin ) on ` process.env ` keys
You can’t perform that action at this time.
0 commit comments