https://github.com/lasso-js/lasso-fs-writer
Custom file system writer for lasso.
https://github.com/lasso-js/lasso-fs-writer
Last synced: 8 months ago
JSON representation
Custom file system writer for lasso.
- Host: GitHub
- URL: https://github.com/lasso-js/lasso-fs-writer
- Owner: lasso-js
- Created: 2017-12-02T06:12:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T21:34:15.000Z (almost 8 years ago)
- Last Synced: 2025-02-22T11:18:36.264Z (9 months ago)
- Language: TypeScript
- Size: 57.6 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lasso-fs-writer
A plugin for [`lasso`](https://github.com/lasso-js/lasso) that will allow you to use a custom FS when writing files.
This is useful for things like saving the output to [memory](https://github.com/webpack/memory-fs).
> WARNING: `lasso-fs-writer` should only be used to do Lasso with prebuilds.
## Usage
```js
const fs = require('memory-fs');
require('lasso').configure({
plugins: [
{
plugin: 'lasso-fs-writer',
config: {
fileSystem: new MemoryFS()
}
}
],
...
});
```
## Configuration Properties
- `fileSystem` {Object} - The new file system to use.