{"id":17967461,"url":"https://github.com/msidolphin/webpack-aliyun-oss-plugin","last_synced_at":"2025-04-03T21:28:54.136Z","repository":{"id":57128539,"uuid":"347295390","full_name":"msidolphin/webpack-aliyun-oss-plugin","owner":"msidolphin","description":"webpack阿里云oss上传插件","archived":false,"fork":false,"pushed_at":"2021-03-16T06:44:49.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T20:46:16.078Z","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/msidolphin.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":"2021-03-13T06:45:25.000Z","updated_at":"2022-08-16T03:59:33.000Z","dependencies_parsed_at":"2022-08-26T23:02:38.224Z","dependency_job_id":null,"html_url":"https://github.com/msidolphin/webpack-aliyun-oss-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/msidolphin%2Fwebpack-aliyun-oss-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Fwebpack-aliyun-oss-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Fwebpack-aliyun-oss-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msidolphin%2Fwebpack-aliyun-oss-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msidolphin","download_url":"https://codeload.github.com/msidolphin/webpack-aliyun-oss-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247081512,"owners_count":20880443,"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-10-29T14:08:54.436Z","updated_at":"2025-04-03T21:28:54.117Z","avatar_url":"https://github.com/msidolphin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-aliyun-oss-plugin\nwebpack上传阿里云oss插件，能够在文件输出到output.path之后自动将静态资源发布到阿里云\n\n注意：这个插件应该在生产环境使用\n\n## 安装\n\n```bash\nnpm install @msidolphin/webpack-aliyun-oss-plugin --save-dev\n```\n\n## 使用\n\n```js\nconst WebpackAliyunOssPlugin = require('@msidolphin/webpack-aliyun-oss-plugin')\n\nmodule.exports = {\n    /// ...\n    plugins: [\n        new WebpackAliyunOssPlugin({\n            accessKeyId: 'your access key',\n            accessKeySecret: 'your access key secret',\n            /// 应该包含的文件\n            include: './dist/static/**',\n            /// 需要剔除的文件\n            exclude: [/\\.html$/],\n            region: 'your region',\n            bucket: 'your bucket',\n            /// 阿里云oss发布路径\n            /// 最终文件的访问地址为：https://[bucket].[region].aliyuncs.com/[publicPath]/[file]\n            publicPath: '/www',\n            /// 静态资源路径 默认/static\n            assetsSubDirectory: '/static',\n            /// 文件上传超时时间 单位ms 默认60000\n            timeout: 60000\n        }),\n        /// ...\n    ]\n    /// ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsidolphin%2Fwebpack-aliyun-oss-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsidolphin%2Fwebpack-aliyun-oss-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsidolphin%2Fwebpack-aliyun-oss-plugin/lists"}