Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit 162af5b

Browse files
Jaeho Leejoshwiens
authored andcommitted
docs: Update usage documentation (#54)
closes #53
1 parent 41fd170 commit 162af5b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Simply add configuration object to `module.loaders` like this.
2727
```javascript
2828
{
2929
test: /\.svg$/,
30-
loader: 'svg-inline'
30+
loader: 'svg-inline-loader'
3131
}
3232
```
3333

@@ -86,21 +86,21 @@ default: `idPrefix: false`
8686

8787
```js
8888
// Using default hashed prefix (__[hash:base64:7]__)
89-
var logoTwo = require('svg-inline?classPrefix!./logo_two.svg');
89+
var logoTwo = require('svg-inline-loader?classPrefix!./logo_two.svg');
9090

9191
// Using custom string
92-
var logoOne = require('svg-inline?classPrefix=my-prefix-!./logo_one.svg');
92+
var logoOne = require('svg-inline-loader?classPrefix=my-prefix-!./logo_one.svg');
9393

9494
// Using custom string and hash
95-
var logoThree = require('svg-inline?classPrefix=__prefix-[sha512:hash:hex:5]__!./logo_three.svg');
95+
var logoThree = require('svg-inline-loader?classPrefix=__prefix-[sha512:hash:hex:5]__!./logo_three.svg');
9696
```
9797
See [loader-utils](https://github.com/webpack/loader-utils#interpolatename) for hash options.
9898

9999
Preferred usage is via a `module.loaders`:
100100
```js
101101
{
102102
test: /\.svg$/,
103-
loader: 'svg-inline?classPrefix'
103+
loader: 'svg-inline-loader?classPrefix'
104104
}
105105
```
106106

0 commit comments

Comments
 (0)