From b7507637c6acda5f6f1faff020ece3fd25996827 Mon Sep 17 00:00:00 2001 From: Yaroslav <13ccdd@gmail.com> Date: Wed, 7 Mar 2018 16:25:40 +0200 Subject: [PATCH] Fix error with filename + npm package. 1) Webpack as default build to file main.js , not on bundle.js. 2) Add npm install webpack-cli -D to npm install, If you do not do this console throw next: ====================================================== The CLI moved into a separate package: webpack-cli. Please install 'webpack-cli' in addition to webpack itself to use the CLI. -> When using npm: npm install webpack-cli -D -> When using yarn: yarn add webpack-cli -D ====================================================== So pls fix this, thank`s. --- src/content/guides/getting-started.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/guides/getting-started.md b/src/content/guides/getting-started.md index 33e74ba9c33b..35a5269114c4 100644 --- a/src/content/guides/getting-started.md +++ b/src/content/guides/getting-started.md @@ -26,6 +26,7 @@ First let's create a directory, initialize npm, and [install webpack locally](/g mkdir webpack-demo && cd webpack-demo npm init -y npm install --save-dev webpack +npm install webpack-cli -D ``` Now we'll create the following directory structure and contents: @@ -136,7 +137,7 @@ __dist/index.html__ - -+ ++ ```