{"id":19318318,"url":"https://github.com/feflow/offline-webpack-plugin","last_synced_at":"2026-05-15T11:32:06.711Z","repository":{"id":95858245,"uuid":"125867200","full_name":"feflow/offline-webpack-plugin","owner":"feflow","description":"离线包打包插件","archived":false,"fork":false,"pushed_at":"2018-10-10T12:54:46.000Z","size":534,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T18:03:28.200Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-19T14:05:26.000Z","updated_at":"2018-10-10T12:54:20.000Z","dependencies_parsed_at":"2023-04-08T20:09:03.138Z","dependency_job_id":null,"html_url":"https://github.com/feflow/offline-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/feflow/offline-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feflow%2Foffline-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feflow%2Foffline-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feflow%2Foffline-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feflow%2Foffline-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feflow","download_url":"https://codeload.github.com/feflow/offline-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feflow%2Foffline-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284868720,"owners_count":27076421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T01:18:07.887Z","updated_at":"2025-11-17T11:04:11.169Z","avatar_url":"https://github.com/feflow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zip-webpack-plugin [![Build Status](https://travis-ci.org/erikdesjardins/zip-webpack-plugin.svg?branch=master)](https://travis-ci.org/erikdesjardins/zip-webpack-plugin)\n\nWebpack plugin to zip up emitted files.\n\nCompresses all assets into a zip file.\n\n## Installation\n\n`npm install --save-dev zip-webpack-plugin`\n\n## Usage\n\n**webpack.config.js**\n\n```js\nvar ZipPlugin = require('zip-webpack-plugin');\n\nmodule.exports = {\n  // ...\n  output: {\n    path: path.join(__dirname, 'dist'),\n    filename: 'bundle.js'\n  },\n  plugins: [\n    new ZipPlugin({\n      // OPTIONAL: defaults to the Webpack output path (above)\n      // can be relative (to Webpack output path) or absolute\n      path: 'zip',\n\n      // OPTIONAL: defaults to the Webpack output filename (above) or,\n      // if not present, the basename of the path\n      filename: 'my_app.zip',\n\n      // OPTIONAL: defaults to 'zip'\n      // the file extension to use instead of 'zip'\n      extension: 'ext',\n\n      // OPTIONAL: defaults to the empty string\n      // the prefix for the files included in the zip file\n      pathPrefix: 'relative/path',\n\n      // OPTIONAL: defaults to the identity function\n      // a function mapping asset paths to new paths\n      pathMapper: function(assetPath) {\n        // put all pngs in an `images` subdir\n        if (assetPath.endsWith('.png'))\n          return path.join(path.dirname(assetPath), 'images', path.basename(assetPath));\n        return assetPath;\n      },\n\n      // OPTIONAL: defaults to including everything\n      // can be a string, a RegExp, or an array of strings and RegExps\n      include: [/\\.js$/],\n\n      // OPTIONAL: defaults to excluding nothing\n      // can be a string, a RegExp, or an array of strings and RegExps\n      // if a file matches both include and exclude, exclude takes precedence\n      exclude: [/\\.png$/, /\\.html$/],\n\n      // yazl Options\n\n      // OPTIONAL: see https://github.com/thejoshwolfe/yazl#addfilerealpath-metadatapath-options\n      fileOptions: {\n        mtime: new Date(),\n        mode: 0o100664,\n        compress: true,\n        forceZip64Format: false,\n      },\n\n      // OPTIONAL: see https://github.com/thejoshwolfe/yazl#endoptions-finalsizecallback\n      zipOptions: {\n        forceZip64Format: false,\n      },\n    })\n  ]\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeflow%2Foffline-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeflow%2Foffline-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeflow%2Foffline-webpack-plugin/lists"}