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

Commit 7b5d5fd

Browse files
committed
fix(readme): fill content into the README
1 parent 5c5dd2c commit 7b5d5fd

File tree

1 file changed

+29
-51
lines changed

1 file changed

+29
-51
lines changed

README.md

Lines changed: 29 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
[![chat][chat]][chat-url]
66

77
<div align="center">
8-
<!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->
9-
<img width="200" height="200" src="https://cdn.worldvectorlogo.com/logos/javascript.svg">
108
<a href="https://webpack.js.org/">
119
<img width="200" height="200" vspace="" hspace="25" src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon-square-big.svg">
1210
</a>
@@ -22,74 +20,54 @@ npm install --save-dev cache-loader
2220

2321
<h2 align="center">Usage</h2>
2422

25-
### Lorem
26-
27-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
23+
Add this loading in from of other (expensive) loaders to cache the result on disk.
2824

2925
<h2 align="center">Examples</h2>
3026

3127
**webpack.config.js**
3228

3329
```js
34-
// Loader/plugin setup here..
30+
module.exports = {
31+
module: {
32+
rules: [
33+
{
34+
test: /\.js$/,
35+
include: path.resolve("src"),
36+
use: [
37+
"cache-loader",
38+
"babel-loader"
39+
]
40+
}
41+
]
42+
}
43+
}
3544
```
3645

37-
**file.ext**
46+
**with options**
3847

3948
```js
40-
// Source code here...
41-
```
42-
43-
**bundle.js**
44-
45-
```js
46-
require("cache-loader!./file.EXT");
47-
48-
// Bundle code here...
49+
use: [
50+
{
51+
loader: "cache-loader",
52+
options: {
53+
// provide a cache directory where cache items should be stored
54+
cacheDirectory: path.resolve(".cache")
55+
}
56+
},
57+
"babel-loader"
58+
]
4959
```
5060

5161
<h2 align="center">Maintainers</h2>
5262

53-
```bash
54-
https://api.github.com/users/MAINTAINER
55-
```
56-
5763
<table>
5864
<tbody>
5965
<tr>
6066
<td align="center">
61-
<a href="https://github.com/">
62-
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
63-
</br>
64-
Name
65-
</a>
66-
</td>
67-
<td align="center">
68-
<a href="https://github.com/">
69-
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
70-
</br>
71-
Name
72-
</a>
73-
</td>
74-
<td align="center">
75-
<a href="https://github.com/">
76-
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
77-
</br>
78-
Name
79-
</a>
80-
</td>
81-
<td align="center">
82-
<a href="https://github.com/">
83-
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
84-
</br>
85-
Name
86-
</a>
87-
</td>
88-
<td align="center">
89-
<a href="https://github.com/">
90-
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
67+
<a href="https://github.com/sokra">
68+
<img width="150" height="150" src="https://github.com/sokra.png?size=150">
9169
</br>
92-
Name
70+
sokra
9371
</a>
9472
</td>
9573
</tr>

0 commit comments

Comments
 (0)