🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cache-loader

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-loader - npm Package Compare versions

Comparing version

to
1.0.2

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.0.2"></a>
## [1.0.2](https://github.com/webpack-contrib/cache-loader/compare/v1.0.1...v1.0.2) (2017-04-26)
### Bug Fixes
* **readme:** fill content into the README ([7b5d5fd](https://github.com/webpack-contrib/cache-loader/commit/7b5d5fd))
<a name="1.0.1"></a>

@@ -7,0 +17,0 @@ ## 1.0.1 (2017-04-26)

2

package.json
{
"name": "cache-loader",
"version": "1.0.1",
"version": "1.0.2",
"description": "Caches the result of following loaders on disk.",

@@ -5,0 +5,0 @@ "main": "dist/cjs.js",

@@ -8,4 +8,2 @@ [![npm][npm]][npm-url]

<div align="center">
<!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->
<img width="200" height="200" src="https://cdn.worldvectorlogo.com/logos/javascript.svg">
<a href="https://webpack.js.org/">

@@ -26,6 +24,4 @@ <img width="200" height="200" vspace="" hspace="25" src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon-square-big.svg">

### Lorem
Add this loading in from of other (expensive) loaders to cache the result on disk.
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.
<h2 align="center">Examples</h2>

@@ -36,25 +32,35 @@

```js
// Loader/plugin setup here..
module.exports = {
module: {
rules: [
{
test: /\.js$/,
include: path.resolve("src"),
use: [
"cache-loader",
"babel-loader"
]
}
]
}
}
```
**file.ext**
**with options**
```js
// Source code here...
use: [
{
loader: "cache-loader",
options: {
// provide a cache directory where cache items should be stored
cacheDirectory: path.resolve(".cache")
}
},
"babel-loader"
]
```
**bundle.js**
```js
require("cache-loader!./file.EXT");
// Bundle code here...
```
<h2 align="center">Maintainers</h2>
```bash
https://api.github.com/users/MAINTAINER
```
<table>

@@ -64,36 +70,8 @@ <tbody>

<td align="center">
<a href="https://github.com/">
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
<a href="https://github.com/sokra">
<img width="150" height="150" src="https://github.com/sokra.png?size=150">
</br>
Name
sokra
</a>
</td>
<td align="center">
<a href="https://github.com/">
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
</br>
Name
</a>
</td>
<td align="center">
<a href="https://github.com/">
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
</br>
Name
</a>
</td>
<td align="center">
<a href="https://github.com/">
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
</br>
Name
</a>
</td>
<td align="center">
<a href="https://github.com/">
<img width="150" height="150" src="https://avatars.githubusercontent.com/u/5419992?v=3&s=150">
</br>
Name
</a>
</td>
</tr>

@@ -100,0 +78,0 @@ <tbody>