Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 147e7db

Browse files
docs: improve readme (#61)
1 parent 4a6da19 commit 147e7db

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<div align="center">
2+
<img width="200" height="200"
3+
src="https://cdn3.iconfinder.com/data/icons/lexter-flat-colorfull-file-formats/56/raw-256.png">
24
<a href="https://github.com/webpack/webpack">
3-
<img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
5+
<img width="200" height="200"
6+
src="https://webpack.js.org/assets/icon-square-big.svg">
47
</a>
58
</div>
69

@@ -30,10 +33,14 @@ $ npm install raw-loader --save-dev
3033

3134
Then add the loader to your `webpack` config. For example:
3235

36+
**file.js**
37+
3338
```js
3439
import txt from './file.txt';
3540
```
3641

42+
**webpack.config.js**
43+
3744
```js
3845
// webpack.config.js
3946
module.exports = {
@@ -56,6 +63,14 @@ $ webpack --module-bind 'txt=raw-loader'
5663

5764
And run `webpack` via your preferred method.
5865

66+
## Examples
67+
68+
Inline.
69+
70+
```js
71+
import txt from 'raw-loader!./file.txt';
72+
```
73+
5974
## License
6075

6176
#### [MIT](./LICENSE)

0 commit comments

Comments
 (0)