From 328bd5c328e56677f41ea1d709d04ba138fb2a96 Mon Sep 17 00:00:00 2001 From: Dimitris Karagiannis Date: Fri, 14 Apr 2017 01:09:42 +0300 Subject: [PATCH 1/2] Update README.md Currently the note, that this loader's functionality is on by default in Webpack 2, is not visible in the [documentation page](https://webpack.js.org/loaders/json-loader/#components/sidebar/sidebar.jsx). Moved it under its own section, hoping it'll now be visible --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a0436a..e116d07 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,9 @@

JSON Loader

-**Note: Since webpack v2, JSON files will work by default. You might still want to use this if you use a custom file extension.** +

Note

+ +**Since webpack v2, JSON files will work by default. You might still want to use this if you use a custom file extension.**

Install

From 779199179207fd694a15178d6756e634cfc54344 Mon Sep 17 00:00:00 2001 From: Dimitris Karagiannis Date: Fri, 14 Apr 2017 03:01:39 +0300 Subject: [PATCH 2/2] Updated per comment suggestions Also tweaked the text a little, for clarity --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e116d07..1feb826 100644 --- a/README.md +++ b/README.md @@ -13,16 +13,14 @@

JSON Loader

-

Note

- -**Since webpack v2, JSON files will work by default. You might still want to use this if you use a custom file extension.** -

Install

```bash npm install --save-dev json-loader ``` +⚠️ **Note: Since webpack v2, importing of JSON files will work by default. You might still want to use this if you use a custom file extension.** +

Usage