{"id":15292686,"url":"https://github.com/maelweb/upload-to-qiniu-webpack-plugin","last_synced_at":"2025-04-13T11:33:01.262Z","repository":{"id":54381115,"uuid":"136107811","full_name":"MaelWeb/upload-to-qiniu-webpack-plugin","owner":"MaelWeb","description":"A webpack plugin for upload file to qiniu clound","archived":false,"fork":false,"pushed_at":"2021-02-22T08:58:17.000Z","size":84,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T02:43:30.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MaelWeb.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}},"created_at":"2018-06-05T02:23:14.000Z","updated_at":"2023-03-05T01:34:38.000Z","dependencies_parsed_at":"2022-08-13T14:00:43.363Z","dependency_job_id":null,"html_url":"https://github.com/MaelWeb/upload-to-qiniu-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaelWeb%2Fupload-to-qiniu-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaelWeb%2Fupload-to-qiniu-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaelWeb%2Fupload-to-qiniu-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaelWeb%2Fupload-to-qiniu-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaelWeb","download_url":"https://codeload.github.com/MaelWeb/upload-to-qiniu-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248706013,"owners_count":21148629,"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","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-09-30T16:25:45.655Z","updated_at":"2025-04-13T11:33:01.235Z","avatar_url":"https://github.com/MaelWeb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/webpack/webpack\"\u003e\n    \u003cimg width=\"200\" height=\"200\"\n      src=\"https://webpack.js.org/assets/icon-square-big.svg\"\u003e\n  \u003c/a\u003e\n  \u003ch1\u003eUpload To Qiniu Webpack Plugin\u003c/h1\u003e\n  \u003cp\u003eA plugin upload file to qiniu clound for webpack\u003c/p\u003e\n\u003c/div\u003e\n\n\u003ch2 align=\"center\"\u003eInstall\u003c/h2\u003e\n\n```bash\n  npm i --save-dev upload-to-qiniu-webpack-plugin\n```\n\n\u003c!-- ```bash\n  yarn add --dev upload-to-qiniu-webpack-plugin\n``` --\u003e\n\n\n\u003ch2 align=\"center\"\u003eUsage\u003c/h2\u003e\nThis plugin will upload the target file/folder to Qiniu Clound. Just add the plugin to your `webpack`\nconfig as follows:\n\n**webpack.config.js**\n```js\nconst UploadToQiniuWebpackPlugin = require('upload-to-qiniu-webpack-plugin');\n\nmodule.exports = {\n  entry: 'index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'index_bundle.js'\n  },\n  plugins: [\n    new UploadToQiniuWebpackPlugin({\n        qiniuAccessKey: 'ARA9LIvdx3JFZyADmwohmNSIjVxgpzIA4',\n        qiniuSecretKey: 'aK19LEtOfStwsvn5TqkVFnbzxlI5FNU7',\n        qiniuBucket: 'bucket-test',\n        qiniuZone: 'Zone_z0',\n    })\n  ]\n}\n```\n\n\u003ch2 align=\"center\"\u003eOptions\u003c/h2\u003e\n\nYou can pass a hash of configuration options to `upload-to-qiniu-webpack-plugin`.\nAllowed values are as follows\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|**[`uploadLogPath`](#)**|`{String}`|[webpackConfig.context](https://webpack.js.org/configuration/entry-context/#context)|  Provide a directory where log file should be stored |\n|**[`uploadTaget`](#)**|`{String}`|[webpackConfig.output.path](https://webpack.js.org/configuration/output/#output-path)|The target file/folder to upload|\n\nAbout [Zone](https://developer.qiniu.com/kodo/sdk/1289/nodejs):\n\n|Name|value|\n|:--:|:----------|\n|**[`华东`](#)**| \"Zone_z0\" |\n|**[`华北`](#)**| \"Zone_z1\" |\n|**[`华南`](#)**| \"Zone_z2\" |\n|**[`北美`](#)**| \"Zone_na0\" |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaelweb%2Fupload-to-qiniu-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaelweb%2Fupload-to-qiniu-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaelweb%2Fupload-to-qiniu-webpack-plugin/lists"}