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

Commit

Permalink
docs: improve readme (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Dec 10, 2018
1 parent 4a6da19 commit 147e7db
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
@@ -1,6 +1,9 @@
<div align="center">
<img width="200" height="200"
src="https://cdn3.iconfinder.com/data/icons/lexter-flat-colorfull-file-formats/56/raw-256.png">
<a href="https://github.com/webpack/webpack">
<img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
<img width="200" height="200"
src="https://webpack.js.org/assets/icon-square-big.svg">
</a>
</div>

Expand Down Expand Up @@ -30,10 +33,14 @@ $ npm install raw-loader --save-dev

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

**file.js**

```js
import txt from './file.txt';
```

**webpack.config.js**

```js
// webpack.config.js
module.exports = {
Expand All @@ -56,6 +63,14 @@ $ webpack --module-bind 'txt=raw-loader'

And run `webpack` via your preferred method.

## Examples

Inline.

```js
import txt from 'raw-loader!./file.txt';
```

## License

#### [MIT](./LICENSE)
Expand Down

0 comments on commit 147e7db

Please sign in to comment.