Skip to content

Commit ca4b5cf

Browse files
authored
docs(configuration): move name option to correct place
The `name` option was listed under the `output` object which is incorrect. Move it to top-level configuration object.
1 parent ee5a23b commit ca4b5cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/configuration/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ contributors:
1818
- bigdawggi
1919
- anshumanv
2020
- textbook
21+
- coly010
2122
---
2223

2324
Out of the box, webpack won't require you to use a configuration file. However, it will assume the entry point of your project is `src/index.js` and will output the result in `dist/main.js` minified and optimized for production.
@@ -64,6 +65,7 @@ module.exports = {
6465
mode: "development", // enabled useful tools for development
6566
mode: "none", // no defaults
6667
</mode>
68+
name: "my-config", // name of the configuration, shown in output
6769
// Chosen mode tells webpack to use its built-in optimizations accordingly.
6870
<entry "/configuration/entry-context/#entry">
6971
<default>
@@ -178,8 +180,6 @@ module.exports = {
178180
},
179181
uniqueName: "my-application", // (defaults to package.json "name")
180182
// unique name for this build to avoid conflicts with other builds in the same HTML
181-
name: "my-config",
182-
// name of the configuration, shown in output
183183
<advancedOutput "#">
184184
<default>
185185
/* Advanced output configuration (click to show) */

0 commit comments

Comments
 (0)