Skip to content

Commit e9c8f82

Browse files
committed
readme
1 parent 841c0a4 commit e9c8f82

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,22 @@
33
[![CircleCI](https://circleci.com/gh/graphcool/graphql-import-loader.svg?style=shield)](https://circleci.com/gh/graphcool/graphql-import-loader) [![npm version](https://badge.fury.io/js/graphql-import-loader.svg)](https://badge.fury.io/js/graphql-import-loader)
44

55

6-
Webpack loader for `graphql-import`
6+
Webpack loader for [`graphql-import`](https://github.com/graphcool/graphql-import)
7+
8+
## Install
9+
10+
```console
11+
yarn add --dev graphql-import-loader
12+
```
13+
14+
## Usage
15+
16+
Add the following to the `rules` section in your `webpack.config.js`
17+
18+
```js
19+
rules: [{
20+
exclude: /node_modules/,
21+
test: /\.graphql$/,
22+
use: [{ loader: 'graphql-import-loader' }]
23+
}],
24+
```

0 commit comments

Comments
 (0)