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: content/how-to/upgrade-from-webpack-1.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,9 @@ More stuff was changed here. Not listed in detail as it's not commonly used. See
30
30
31
31
## `module.loaders` is now `module.rules`
32
32
33
-
The old loader configuration was superseded by a more powerful rules system, which allows to configure loaders and more.
34
-
For compatibility reasons the old syntax is still valid and the old names are parsed.
35
-
The new naming is easier to understand to there are good reasons to upgrade the configuration.
33
+
The old loader configuration was superseded by a more powerful rules system, which allows configuration of loaders and more.
34
+
For compatibility reasons, the old`module.loaders` syntax is still valid and the old names are parsed.
35
+
The new naming conventions are easier to understand and are a good reason to upgrade the configuration to using `module.rules`.
36
36
37
37
```diff
38
38
module: {
@@ -92,7 +92,7 @@ See [#2986](https://github.com/webpack/webpack/issues/2986) for the reason behin
92
92
## `UglifyJsPlugin` sourceMap
93
93
94
94
The `sourceMap` option of the `UglifyJsPlugin` now defaults to `false` instead of `true`.
95
-
This means if using SourceMaps for the minimized code you need to pass`sourceMap: true`.
95
+
This means that if you are using source maps for minimized code, you need to set`sourceMap: true` for `UglifyJsPlugin`.
96
96
97
97
```diff
98
98
devtool: "source-map",
@@ -105,7 +105,7 @@ This means if using SourceMaps for the minimized code you need to pass `sourceMa
105
105
106
106
## `UglifyJsPlugin` minimize loaders
107
107
108
-
The UglifyJsPlugin does not longer switch loaders into minimize mode. This need to be passed via loader options in long-term. See loader documentation for relevant options.
108
+
`UglifyJsPlugin` no longer switches loaders into minimize mode. The `minimize: true` setting needs to be passed via loader options in long-term. See loader documentation for relevant options.
109
109
110
110
The minimize mode for loaders will be removed in webpack 3 or later.
0 commit comments