From aa25ee982171a1a600ad77d09d06979952504350 Mon Sep 17 00:00:00 2001 From: EugeneHlushko Date: Sat, 12 Oct 2019 17:15:57 +0300 Subject: [PATCH] docs(misc) correct and enhance npm install snippets --- src/content/concepts/loaders.mdx | 3 +-- src/content/guides/getting-started.md | 3 +-- src/content/guides/installation.md | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content/concepts/loaders.mdx b/src/content/concepts/loaders.mdx index a9be7c941e38..dc4c4f620d58 100644 --- a/src/content/concepts/loaders.mdx +++ b/src/content/concepts/loaders.mdx @@ -25,8 +25,7 @@ Loaders are transformations that are applied on the source code of a module. The For example, you can use loaders to tell webpack to load a CSS file or to convert TypeScript to JavaScript. To do this, you would start by installing the loaders you need: ``` bash -npm install --save-dev css-loader -npm install --save-dev ts-loader +npm install --save-dev css-loader ts-loader ``` And then instruct webpack to use the [`css-loader`](/loaders/css-loader) for every `.css` file and the [`ts-loader`](https://github.com/TypeStrong/ts-loader) for all `.ts` files: diff --git a/src/content/guides/getting-started.md b/src/content/guides/getting-started.md index a51f03e29885..d84984ef1f5d 100644 --- a/src/content/guides/getting-started.md +++ b/src/content/guides/getting-started.md @@ -33,8 +33,7 @@ First let's create a directory, initialize npm, [install webpack locally](/guide mkdir webpack-demo cd webpack-demo npm init -y -npm install webpack --save-dev -npm install webpack-cli --save-dev +npm install webpack webpack-cli --save-dev ``` T> Throughout the Guides we will use `diff` blocks to show you what changes we're making to directories, files, and code. diff --git a/src/content/guides/installation.md b/src/content/guides/installation.md index 6d1c5420bc35..92eee6b0bdb8 100644 --- a/src/content/guides/installation.md +++ b/src/content/guides/installation.md @@ -27,6 +27,7 @@ To install the latest release or a specific version, run one of the following co ``` bash npm install --save-dev webpack +# or specific version npm install --save-dev webpack@ ``` @@ -64,6 +65,7 @@ If you are enthusiastic about using the latest that webpack has to offer, you ca ``` bash npm install webpack@beta +# or specific tag/branch npm install webpack/webpack# ```