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
* updated 4.md
Made certain changes to the document that I thought was necessary. Added more links to installation guides and about plugins.
This is in regards to the issue [#1934](#1934)
* updated 4.md
* requested changes to 4.md
* Update src/content/migrate/4.md
Co-Authored-By: Eugene Hlushko <[email protected]>
* Update src/content/migrate/4.md
Co-Authored-By: Eugene Hlushko <[email protected]>
* updated 4.md with requested changes
* updated 4.md
* Update src/content/migrate/4.md
Co-Authored-By: Eugene Hlushko <[email protected]>
This guide only shows major changes that affect end users. For more details please see [the changelog](https://github.com/webpack/webpack/releases).
@@ -12,22 +20,26 @@ This guide only shows major changes that affect end users. For more details plea
12
20
## Node.js v4
13
21
14
22
If you are still using Node.js v4 or lower, you need to upgrade your Node.js installation to Node.js v6 or higher.
15
-
23
+
24
+
Instructions for upgrading your Node.js version can be found [here](https://stackoverflow.com/questions/10075990/upgrading-node-js-to-latest-version).
16
25
17
26
## CLI
18
27
19
28
The CLI has moved to a separate package: webpack-cli. You need to install it before using webpack, see [basic setup](/guides/getting-started/#basic-setup).
20
29
30
+
The installation guide can be found [here](/guides/installation).
31
+
21
32
22
33
## Update plugins
23
34
24
-
Many 3rd-party plugins need to be upgraded to their latest version to be compatible.
35
+
Many 3rdparty plugins need to be updated to the latest versions to be compatible with webpack 4. Links to popular plugins can be found [here](https://github.com/webpack-contrib/awesome-webpack#webpack-plugins).
25
36
26
37
27
38
## mode
28
39
29
40
Add the new [`mode`](/configuration/mode/) option to your config. Set it to production or development in your configuration depending on config type.
30
41
42
+
31
43
__webpack.config.js__
32
44
33
45
```diff
@@ -37,7 +49,7 @@ module.exports = {
37
49
}
38
50
```
39
51
40
-
Alternatively you can pass it via CLI: `--mode production`/`--mode development`
52
+
T> The purpose of `development` mode and `production`mode is different. You can use `webpack-merge` as shown in [production guide](/guides/production/#setup) to optimize configurations.
41
53
42
54
## Deprecated/Removed plugins
43
55
@@ -156,3 +168,4 @@ module.exports = {
156
168
## module.loaders
157
169
158
170
`module.loaders` were deprecated since webpack 2 and are now removed in favor of [`module.rules`](/configuration/module/#rule).
0 commit comments