Skip to content

Commit bf15051

Browse files
committed
docs(concepts) loaders command fix and message re-worked
1 parent e5a2d9c commit bf15051

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/content/concepts/loaders.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ Loaders are transformations that are applied on the source code of a module. The
2525
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:
2626

2727
``` bash
28-
npm install --save-dev css-loader
29-
npm install --save-dev ts-loader
28+
npm install --save-dev css-loader ts-loader
3029
```
3130

3231
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:
@@ -141,8 +140,7 @@ This uses the `jade-loader` for `.jade` files, and the [`style-loader`](/loaders
141140
- Plugins can give loaders more features.
142141
- Loaders can emit additional arbitrary files.
143142

144-
Loaders allow more power in the JavaScript ecosystem through preprocessing
145-
functions (loaders). Users now have more flexibility to include fine-grained logic such as compression, packaging, language translations and [more](/loaders).
143+
Loaders provide a way to customize the output through their preprocessing functions. Users now have more flexibility to include fine-grained logic such as compression, packaging, language translations and [more](/loaders).
146144

147145

148146
## Resolving Loaders

0 commit comments

Comments
 (0)