Skip to content

Commit 46dfe4b

Browse files
committed
docs(migrate): avoid code in heading
1 parent d2c662f commit 46dfe4b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/content/migrate/3.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following sections describe the major changes from webpack 1 to 2.
2222

2323
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.
2424

25-
## `resolve.root`, `resolve.fallback`, `resolve.modulesDirectories`
25+
## resolve.root, resolve.fallback, resolve.modulesDirectories
2626

2727
These options were replaced by a single option `resolve.modules`. See [resolving](/configuration/resolve) for more usage.
2828

@@ -36,15 +36,15 @@ These options were replaced by a single option `resolve.modules`. See [resolving
3636
}
3737
```
3838

39-
## `resolve.extensions`
39+
## resolve.extensions
4040

4141
This option no longer requires passing an empty string. This behavior was moved to `resolve.enforceExtension`. See [resolving](/configuration/resolve) for more usage.
4242

43-
## `resolve.*`
43+
## resolve.\*
4444

4545
Several APIs were changed here. Not listed in detail as it's not commonly used. See [resolving](/configuration/resolve) for details.
4646

47-
## `module.loaders` is now `module.rules`
47+
## module.loaders is now module.rules
4848

4949
The old loader configuration was superseded by a more powerful rules system, which allows configuration of loaders and more.
5050
For compatibility reasons, the old `module.loaders` syntax is still valid and the old names are parsed.
@@ -134,7 +134,7 @@ You can still opt-in to the old behavior with the `resolveLoader.moduleExtension
134134

135135
See [#2986](https://github.com/webpack/webpack/issues/2986) for the reason behind this change.
136136

137-
## `json-loader` is not required anymore
137+
## json-loader is not required anymore
138138

139139
When no loader has been configured for a JSON file, webpack will automatically try to load the JSON
140140
file with the [`json-loader`](https://github.com/webpack-contrib/json-loader).
@@ -176,7 +176,7 @@ You may remove some hacks to work around this:
176176
}
177177
```
178178

179-
## `module.preLoaders` and `module.postLoaders` were removed:
179+
## module.preLoaders and module.postLoaders were removed:
180180

181181
```diff
182182
module: {
@@ -191,7 +191,7 @@ You may remove some hacks to work around this:
191191
}
192192
```
193193

194-
## `UglifyJsPlugin` sourceMap
194+
## UglifyJsPlugin sourceMap
195195

196196
The `sourceMap` option of the `UglifyJsPlugin` now defaults to `false` instead of `true`. This means that if you are using source maps for minimized code or want correct line numbers for uglifyjs warnings, you need to set `sourceMap: true` for `UglifyJsPlugin`.
197197

@@ -204,7 +204,7 @@ The `sourceMap` option of the `UglifyJsPlugin` now defaults to `false` instead o
204204
]
205205
```
206206

207-
## `UglifyJsPlugin` warnings
207+
## UglifyJsPlugin warnings
208208

209209
The `compress.warnings` option of the `UglifyJsPlugin` now defaults to `false` instead of `true`.
210210
This means that if you want to see uglifyjs warnings, you need to set `compress.warnings` to `true`.
@@ -220,7 +220,7 @@ This means that if you want to see uglifyjs warnings, you need to set `compress.
220220
]
221221
```
222222

223-
## `UglifyJsPlugin` minimize loaders
223+
## UglifyJsPlugin minimize loaders
224224

225225
`UglifyJsPlugin` no longer switches loaders into minimize mode. The `minimize: true` setting needs to be passed via loader options in the long-term. See loader documentation for relevant options.
226226

@@ -236,11 +236,11 @@ To keep compatibility with old loaders, loaders can be switched to minimize mode
236236
]
237237
```
238238

239-
## `DedupePlugin` has been removed
239+
## DedupePlugin has been removed
240240

241241
`webpack.optimize.DedupePlugin` isn't needed anymore. Remove it from your configuration.
242242

243-
## `BannerPlugin` - breaking change
243+
## BannerPlugin - breaking change
244244

245245
`BannerPlugin` no longer accepts two parameters, but a single options object.
246246

@@ -251,7 +251,7 @@ To keep compatibility with old loaders, loaders can be switched to minimize mode
251251
]
252252
```
253253

254-
## `OccurrenceOrderPlugin` is now on by default
254+
## OccurrenceOrderPlugin is now on by default
255255

256256
The `OccurrenceOrderPlugin` is now enabled by default and has been renamed (`OccurenceOrderPlugin` in webpack 1).
257257
Thus make sure to remove the plugin from your configuration:
@@ -265,15 +265,15 @@ Thus make sure to remove the plugin from your configuration:
265265
]
266266
```
267267

268-
## `ExtractTextWebpackPlugin` - breaking change
268+
## ExtractTextWebpackPlugin - breaking change
269269

270270
[ExtractTextPlugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) requires version 2 to work with webpack 2.
271271

272272
`npm install --save-dev extract-text-webpack-plugin`
273273

274274
The configuration changes for this plugin are mainly syntactical.
275275

276-
### `ExtractTextPlugin.extract`
276+
### ExtractTextPlugin.extract
277277

278278
```diff
279279
module: {
@@ -291,7 +291,7 @@ module: {
291291
}
292292
```
293293

294-
### `new ExtractTextPlugin({options})`
294+
### new ExtractTextPlugin({options})
295295

296296
```diff
297297
plugins: [
@@ -341,7 +341,7 @@ module.exports = function (env) {
341341

342342
See [CLI](/api/cli).
343343

344-
## `require.ensure` and AMD `require` are asynchronous
344+
## require.ensure and AMD require are asynchronous
345345

346346
These functions are now always asynchronous instead of calling their callback synchronously if the chunk is already loaded.
347347

@@ -402,7 +402,7 @@ module.exports = {
402402
};
403403
```
404404

405-
## `LoaderOptionsPlugin` context
405+
## LoaderOptionsPlugin context
406406

407407
Some loaders need context information and read them from the configuration. This needs to be passed via loader options in the long-term. See loader documentation for relevant options.
408408

@@ -418,7 +418,7 @@ To keep compatibility with old loaders, this information can be passed via plugi
418418
]
419419
```
420420

421-
## `debug`
421+
## debug
422422

423423
The `debug` option switched loaders to debug mode in webpack 1. This needs to be passed via loader options in long-term. See loader documentation for relevant options.
424424

0 commit comments

Comments
 (0)