From 285a4cd227ce9ee97e016b37fe31599933d8dc67 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Sun, 3 Mar 2019 19:09:16 +0200 Subject: [PATCH] docs(config) fix conflicts after rebasing onto master, which had moved further with rebuild branch merge --- src/content/configuration/index.mdx | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/content/configuration/index.mdx b/src/content/configuration/index.mdx index a0f817b65278..602725ce5376 100644 --- a/src/content/configuration/index.mdx +++ b/src/content/configuration/index.mdx @@ -453,3 +453,39 @@ T> Want to rapidly generate webpack configuration file for your project requirem a minimal webpack configuration based on your selection of loaders/plugins, etc. [Visual tool for creating webpack configs](https://webpack.jakoblind.no/) is an online configuration tool for creating webpack config where you can select any combination of features you need. It also generates a full example project based on your webpack configs. + +Or use [webpack-cli's `init` command](https://github.com/webpack/webpack-cli/tree/master/packages/init#cli-via-webpack-cli) that will ask you a couple of questions before creating a configuration file. + +```bash +npx webpack-cli init +``` + +W> You might be promted to install `@webpack-cli/init` if it is not yet installed in the project or globally. + +T> After running `npx webpack-cli init` you might get more packages installed to your project depending on the choices you've made during configuration generation. + +```bash +npx webpack-cli init + +ℹ INFO For more information and a detailed description of each question, have a look at https://github.com/webpack/webpack-cli/blob/master/INIT.md +ℹ INFO Alternatively, run `webpack(-cli) --help` for usage info. + +? Will your application have multiple bundles? No +? Which module will be the first to enter the application? [default: ./src/index] +? Which folder will your generated bundles be in? [default: dist]: +? Will you be using ES2015? Yes +? Will you use one of the below CSS solutions? No + ++ babel-plugin-syntax-dynamic-import@6.18.0 ++ uglifyjs-webpack-plugin@2.0.1 ++ webpack-cli@3.2.3 ++ @babel/core@7.2.2 ++ babel-loader@8.0.4 ++ @babel/preset-env@7.1.0 ++ webpack@4.29.3 +added 124 packages from 39 contributors, updated 4 packages and audited 25221 packages in 7.463s +found 0 vulnerabilities + + +Congratulations! Your new webpack configuration file has been created! +```