diff --git a/antwar.config.js b/antwar.config.js index 868849c300e6..59a77c51eeb9 100644 --- a/antwar.config.js +++ b/antwar.config.js @@ -85,6 +85,12 @@ module.exports = () => ({ layout: () => require('./src/components/Page/Page.jsx').default, content: () => require.context('./loaders/page-loader!./src/content/contribute', false, /^\.\/.*\.md$/), }, + migrate: { + title: 'Migrate', + url: ({ sectionName, fileName }) => `/${sectionName}/${fileName}/`, + layout: () => require('./src/components/Page/Page.jsx').default, + content: () => require.context('./loaders/page-loader!./src/content/migrate', false, /^\.\/.*\.md$/), + }, vote: () => require('./src/components/Vote/Vote.jsx').default, organization: () => require('./src/components/Organization/Organization.jsx').default, 'starter-kits': () => require('./src/components/StarterKits/StarterKits.jsx').default, diff --git a/src/components/Navigation/Links.json b/src/components/Navigation/Links.json index aafac7beec4f..a3aa7dd753f9 100644 --- a/src/components/Navigation/Links.json +++ b/src/components/Navigation/Links.json @@ -8,7 +8,8 @@ { "title": "API", "url": "api" }, { "title": "Guides", "url": "guides" }, { "title": "Loaders", "url": "loaders" }, - { "title": "Plugins", "url": "plugins" } + { "title": "Plugins", "url": "plugins" }, + { "title": "Migrate", "url": "migrate" } ] }, { diff --git a/src/content/guides/migrating.md b/src/content/migrate/3.md similarity index 97% rename from src/content/guides/migrating.md rename to src/content/migrate/3.md index 2785e873124a..cffb1e4caf17 100644 --- a/src/content/guides/migrating.md +++ b/src/content/migrate/3.md @@ -1,6 +1,6 @@ --- -title: Migrating Versions -sort: 15 +title: To webpack v2, v3 +sort: 1 contributors: - sokra - jhnns @@ -14,14 +14,13 @@ contributors: - howdy39 - selbekk - ndelangen + - EugeneHlushko --- The following sections describe the major changes from webpack 1 to 2. T> Note that there were far fewer changes between 2 and 3, so that migration shouldn't be too bad. If you are running into issues, please see [the changelog](https://github.com/webpack/webpack/releases) for details. -W> This content may be moved to the blog post in the near future as version 2 has been out for a while. On top of that, version 3 was recently released and version 4 is on the horizon. As noted above, folks should instead to refer to [the changelog](https://github.com/webpack/webpack/releases) for migrations. - ## `resolve.root`, `resolve.fallback`, `resolve.modulesDirectories` diff --git a/src/content/migrate/index.md b/src/content/migrate/index.md new file mode 100644 index 000000000000..788242755e8f --- /dev/null +++ b/src/content/migrate/index.md @@ -0,0 +1,8 @@ +--- +title: Migrate +sort: 1 +contributors: + - EugeneHlushko +--- + +This section contains information about migrating from older versions of webpack to newer ones. \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js index b386f09801d9..0e7dfbaccd53 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -119,6 +119,7 @@ module.exports = (env) => ({ 'development/release-process': '/contribute/release-process/', 'development/how-to-write-a-loader': '/contribute/writing-a-loader/', 'development/how-to-write-a-plugin': '/contribute/writing-a-plugin/', + 'migrating': '/migrate/3/', }, }), ]