Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/agentcooper/parcel-plugin-static-zip


https://github.com/agentcooper/parcel-plugin-static-zip

browserfs parcel parcel-plugin zip

Last synced: 3 months ago
JSON representation

Lists

README

        

# parcel-plugin-static-zip

https://agentcooper.github.io/parcel-plugin-static-zip/

Provide archived local directory in the static build. Useful for [BrowserFS](https://github.com/jvilk/BrowserFS).

## Install

```
npm install parcel-plugin-static-zip --save-dev
```

## How to use

Add config to your `package.json`:

```
"parcel-plugin-static-zip": {
"self.zip": {
"glob": "**",
"options": {
"cwd": "../../",
"ignore": [
"**/node_modules/**",
"**/dist/**"
]
}
}
},
```

`options` are [node-glob options](https://github.com/isaacs/node-glob#options).

Whenever Parcel builds the project, `self.zip` will be available in the `dist`.