You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,8 @@ Works like [`output.filename`](https://webpack.js.org/configuration/output/#outp
95
95
Type: `String|Function`
96
96
Default: `based on filename`
97
97
98
+
> i Specifying `chunkFilename` as a `function` is only available in webpack@5
99
+
98
100
This option determines the name of non-entry chunk files.
99
101
100
102
Works like [`output.chunkFilename`](https://webpack.js.org/configuration/output/#outputchunkfilename)
@@ -104,7 +106,8 @@ Works like [`output.chunkFilename`](https://webpack.js.org/configuration/output/
104
106
Type: `Boolean`
105
107
Default: `false`
106
108
107
-
Remove Order Warnings
109
+
Remove Order Warnings.
110
+
See [examples](#remove-order-warnings) below for details.
108
111
109
112
### Loader Options
110
113
@@ -391,7 +394,7 @@ module.exports = {
391
394
392
395
### Advanced configuration example
393
396
394
-
This plugin should be used only on `production` builds without `style-loader` in the loaders chain, especially if you want to have HMR in `development`.
397
+
This plugin should not be used with `style-loader` in the loaders chain.
395
398
396
399
Here is an example to have both HMR in `development` and your styles extracted in a file for `production` builds.
397
400
@@ -411,8 +414,8 @@ const plugins = [
411
414
newMiniCssExtractPlugin({
412
415
// Options similar to the same options in webpackOptions.output
0 commit comments