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
Copy file name to clipboardExpand all lines: src/content/configuration/index.mdx
+16-27
Original file line number
Diff line number
Diff line change
@@ -46,44 +46,33 @@ If for some reason you want to use a different configuration file depending on c
46
46
47
47
W> webpack applies configuration defaults after [plugins defaults](/contribute/writing-a-plugin/#configuration-defaults) are applied.
48
48
49
-
Webpack has a huge set of options which might be overwhelming to you, please take advantage of [webpack-cli's `init` command](/api/cli/#init) which could rapidly generate webpack configuration files for your project requirements, it will ask you a couple of questions before creating a configuration file.
49
+
Webpack has a huge set of options which might be overwhelming to you, please take advantage of `webpack-cli` starting from version v6.0.0 new tool [create-new-webpack-app](https://github.com/webpack/webpack-cli/) which could rapidly generate webpack application with specific configuration files for your project requirements, it will ask you a couple of questions before creating a configuration file.
50
50
51
51
```bash
52
-
npx webpack init
52
+
npx create-new-webpack-app [command] [options]
53
53
```
54
54
55
-
npx might prompt you to install `@webpack-cli/generators` if it is not yet installed in the project or globally. You might also get additional packages installed to your project depending on the choices you've made during the configuration generation.
55
+
npx might prompt you to install `create-new-webpack-app` if it is not yet installed in the project or globally. You might also get additional packages installed to your project depending on the choices you've made during the new webpack application generation.
56
56
57
57
```bash
58
-
$ npx webpack init
58
+
$ npx create-new-webpack-app init
59
59
60
-
[webpack-cli] For using this command you need to install: '@webpack-cli/generators' package.
61
-
[webpack-cli] Would you like to install '@webpack-cli/generators' package? (That will run 'npm install -D @webpack-cli/generators') (Y/n)
62
-
devDependencies:
63
-
+ @webpack-cli/generators 2.5.0
64
-
? Which of the following JS solutions do you want to use?ES6
0 commit comments