Skip to content

Commit 680b7b9

Browse files
kolharsamEugeneHlushko
authored andcommitted
docs(migrate): Updated migrate (#2834)
* 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]>
1 parent 39224c5 commit 680b7b9

File tree

1 file changed

+16
-3
lines changed
  • src/content/migrate

1 file changed

+16
-3
lines changed

src/content/migrate/4.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ sort: 1
44
contributors:
55
- sokra
66
- EugeneHlushko
7+
- Kolhar730
8+
related:
9+
- title: 'To v2 or v3 from v1'
10+
url: https://webpack.js.org/migrate/3/
11+
- title: 'RIP CommonChunkPlugin'
12+
url: https://gist.github.com/sokra/1522d586b8e5c0f5072d7565c2bee693
13+
- title: 'webpack 4: migration guide for plugins/loaders'
14+
url: https://medium.com/webpack/webpack-4-migration-guide-for-plugins-loaders-20a79b927202
715
---
816

917
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
1220
## Node.js v4
1321

1422
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).
1625

1726
## CLI
1827

1928
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).
2029

30+
The installation guide can be found [here](/guides/installation).
31+
2132

2233
## Update plugins
2334

24-
Many 3rd-party plugins need to be upgraded to their latest version to be compatible.
35+
Many 3rd party 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).
2536

2637

2738
## mode
2839

2940
Add the new [`mode`](/configuration/mode/) option to your config. Set it to production or development in your configuration depending on config type.
3041

42+
3143
__webpack.config.js__
3244

3345
``` diff
@@ -37,7 +49,7 @@ module.exports = {
3749
}
3850
```
3951

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.
4153

4254
## Deprecated/Removed plugins
4355

@@ -156,3 +168,4 @@ module.exports = {
156168
## module.loaders
157169

158170
`module.loaders` were deprecated since webpack 2 and are now removed in favor of [`module.rules`](/configuration/module/#rule).
171+

0 commit comments

Comments
 (0)