{"id":33008076,"url":"https://github.com/cduyzh/webpack-plugin-qiniu-upload","last_synced_at":"2026-01-14T16:48:31.129Z","repository":{"id":57676022,"uuid":"347340515","full_name":"cduyzh/webpack-plugin-qiniu-upload","owner":"cduyzh","description":"A plugin upload file to qiniu clound for vue-cli4|vue-cli5|webpack5","archived":false,"fork":false,"pushed_at":"2024-03-06T07:54:16.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-19T21:36:21.333Z","etag":null,"topics":["aws","qiniu","upload-file","vue","vue-cli-plugin","webpack-plugin","webpack5"],"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/cduyzh.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,"zenodo":null}},"created_at":"2021-03-13T10:32:21.000Z","updated_at":"2023-07-27T11:12:43.000Z","dependencies_parsed_at":"2025-08-17T13:09:35.732Z","dependency_job_id":"7824723b-4d35-42fe-9c4a-69406147d7e4","html_url":"https://github.com/cduyzh/webpack-plugin-qiniu-upload","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.25,"last_synced_commit":"0dc6f99af8b193bd2feebd63a3b4e097cbe75037"},"previous_names":["cduyzh/qiniu-upload-vuecli5","cduyzh/vue-cli-plugin-upload-qiniu"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cduyzh/webpack-plugin-qiniu-upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cduyzh%2Fwebpack-plugin-qiniu-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cduyzh%2Fwebpack-plugin-qiniu-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cduyzh%2Fwebpack-plugin-qiniu-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cduyzh%2Fwebpack-plugin-qiniu-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cduyzh","download_url":"https://codeload.github.com/cduyzh/webpack-plugin-qiniu-upload/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cduyzh%2Fwebpack-plugin-qiniu-upload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws","qiniu","upload-file","vue","vue-cli-plugin","webpack-plugin","webpack5"],"created_at":"2025-11-13T15:00:44.273Z","updated_at":"2026-01-14T16:48:31.124Z","avatar_url":"https://github.com/cduyzh.png","language":"JavaScript","funding_links":[],"categories":["Components \u0026 Libraries"],"sub_categories":["Utilities"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://cli.vuejs.org/\"\u003e\n    \u003cimg width=\"200\" height=\"200\"\n      src=\"https://cli.vuejs.org/favicon.png\"\u003e\n  \u003c/a\u003e\n  \u003ch1\u003eUpload To qiniu cloud  webpack|vue-cli-Plugin\u003c/h1\u003e\n  \u003ch1\u003eQiniu Cloud scaffolding package upload plug-in package，webpack5，vue-cli4|vue-cli5 plugin\u003c/h1\u003e\n  \u003cp\u003eA plugin upload file to qiniu clound for vue-cli4|vue-cli5\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/webpack-plugin-qiniu-upload?style=flat-square\" alt=\"npm version\" /\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/webpack-plugin-qiniu-upload.svg?style=flat-square\u0026color=#4fc08d\" alt=\"downloads\" /\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\u003ch2 align=\"center\"\u003eFeatures\u003c/h2\u003e\n\n☁️ Support the latest SDK Qiniu Cloud upload, adapted to the latest VUE scaffolding CLI4.0 and 5.0 versions\n\n💪 Suitable for the latest vue scaffolding cli4.0 and 5.0 versions, support webpack5 configuration\n\n💪 Webpack5 configuration is supported\n\n🚀 Incremental file upload is supported, eliminating the annoyance and waiting time of repeatedly uploading and refreshing files for all resources\n\n\u003ch2 align=\"center\"\u003eInstall\u003c/h2\u003e\n\n```bash\n  pnpm add webpack-plugin-qiniu-upload -D\n```\n\n```bash\n  yarn add webpack-plugin-qiniu-upload -D\n```\n\n\u003ch2 align=\"center\"\u003eUse the sample\u003c/h2\u003e\n\n**vue.config.js**\n\n```js\nconst UploadQiNiuPlugin = require(\"webpack-plugin-thirdparty-upload\");\nconst isBuildDev = process.env.buildMode === 'dev'\n\nmodule.exports = {\n  ...,\n  plugins: [\n    uploadPlugin({\n        sdkName: isBuildDev ? 'qiniu' : 'aws',\n        accessKey: isBuildDev ? process.env.QN_ACCESS_KEY : process.env.AWS_ACCESS_KEY,\n        secretKey: isBuildDev ? process.env.QN_SECRET_KEY : process.env.AWS_SECRET_KEY,\n        bucket: isBuildDev ? process.env.QN_BUCKET : process.env.AWS_BUCKET,\n        region: isBuildDev ? 'Zone_z2' : 'us-east-1',\n        awsDistributionId: 'xxxx', // aws的失效id\n        enabledRefresh: true,\n        publicPath: process.env.logBaseUrl,\n        uploadTarget: path.resolve(__dirname, './dist'),\n        appName: webpackEntry.EntryConfigs[argv.e].filename.replaceAll('.html', ''),\n        fileLogPath: 'log/',\n        env: isBuildDev ? 'development' : 'production',\n        htmlPath: htmlPath, // html 存到云的路径\n        excludeHtml: false, // 是否排除html文件\n        // suffix: '-v1'\n    })\n  ],\n};\n```\n\n\u003ch2 align=\"center\"\u003eOptions\u003c/h2\u003e\n\n### qiniu cloud Options\n\n|            Name            |    Type     |                                             Default                                              | Description                                                                                             |\n| :------------------------: | :---------: | :----------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------ |\n| **[`qiniuAccessKey`](#)**  | `{String}`  |                                              `null`                                              | Your Qiniu AccessKey                                                                                    |\n| **[`qiniuSecretKey`](#)**  | `{String}`  |                                              `null`                                              | Your Qiniu SecretKey                                                                                    |\n|   **[`qiniuBucket`](#)**   | `{String}`  |                                              `null`                                              | Your Qiniu Bucket Name                                                                                  |\n|    **[`qiniuZone`](#)**    | `{String}`  |                                              `null`                                              | Your Qiniu zone code                                                                                    |\n| **[`enabledRefresh`](#)**  | `{Boolean}` |                                             `false`                                              | Is enable refresh the file on Qiniu Clound after file upload                                            |\n|   **[`excludeHtml`](#)**   | `{Boolean}` |                                              `true`                                              | Is exclude html file                                                                                    |\n| **[`onlyRefreshHtml`](#)** | `{Boolean}` |                                             `false`                                              | only refresh html file (eg: _/demo/index.html + _/demo/), throws an exception in the case of a failure. |\n|   **[`prefixPath`](#)**    | `{String}`  |                                                -                                                 | prefix path for the file                                                                                |\n|   **[`fileLogPath`](#)**   | `{String}`  |                                              `log/`                                              | Provide a directory where log file should be stored                                                     |\n|   **[`publicPath`](#)**    | `{String}`  | [webpackConfig.output.publicPath](https://webpack.js.org/configuration/output/#outputpublicpath) | The prefix path to your packaged resource                                                               |\n|  **[`uploadTarget`](#)**   | `{String}`  |      [webpackConfig.output.path](https://webpack.js.org/configuration/output/#output-path)       | Directory of the folder to be uploaded                                                                  |\n|     **[`appName`](#)**     | `{Number}`  |                                           `Date.now()`                                           | Optional. Name of the file used to generate resource mapping file logs                                  |\n|       **[`env`](#)**       | `{String}`  |                                          `development`                                           | The environment directory corresponding to the JSON file of log                                         |\n\nAbout [qiniuZone](https://developer.qiniu.com/kodo/sdk/1289/nodejs):\n\n## TODO LIST\n\n- [x] Supports incremental update file upload\n- [x] Supports environment With log json file\n- [ ] Support log file cleaning or pull range filtering\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcduyzh%2Fwebpack-plugin-qiniu-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcduyzh%2Fwebpack-plugin-qiniu-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcduyzh%2Fwebpack-plugin-qiniu-upload/lists"}