0.0.7 • Published 6 years ago

parcel-plugin-static-zip v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

parcel-plugin-static-zip

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

Provide archived local directory in the static build. Useful for 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.

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