Skip to content

neokeld/create-fs-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-fs-cache

Node.js Lib forked from https://github.com/viankakrisna/loader-fs-cache

A published package of https://github.com/babel/babel-loader/blob/4b3bafa4859774458327a585d69a3c346a7652d6/src/fs-cache.js

Forked to resolve:

Usage Example

import createCache from 'loader-fs-cache';

const cache = createCache('eslint-loader');

const cacheLoader = (callback, cache, content) => {
  const cacheIdentifier = JSON.stringify({
    'create-fs-cache-example': "1.0.0",
  });

  cache(
    {
      directory: cache,
      identifier: cacheIdentifier,
      source: content,
    },
    (err, res) => {
      return callback(err, content);
    }
  );
};

About

Forked from viankakrisna/loader-fs-cache

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published