Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

agentcooper/parcel-plugin-static-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.