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

Give more abstraction to the filesystem #369

Open
FranckFreiburger opened this issue Sep 10, 2018 · 0 comments
Open

Give more abstraction to the filesystem #369

FranckFreiburger opened this issue Sep 10, 2018 · 0 comments

Comments

@FranckFreiburger
Copy link

FranckFreiburger commented Sep 10, 2018

currently, sw-precache uses 'fs' (fs.statSync, fs.readFileSync, fs.realpathSync, fs.readFileSync, fs.readFile, fs.writeFile) to access files, whereas, in dev mode, webpack uses a memory filesystem.
In order to allow test sw-precache in dev mode, it could be conviennent to allow sw-precache to use this memory filesystem.

Proposed API:
add a new optional fs entry in params of generate(params, callback) ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant