This repository was archived by the owner on Oct 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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```
9797See [ loader-utils] ( https://github.com/webpack/loader-utils#interpolatename ) for hash options.
9898
9999Preferred 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
You can’t perform that action at this time.
0 commit comments