{"id":13671182,"url":"https://github.com/komomoo/crossorigin-webpack-plugin","last_synced_at":"2025-07-24T16:31:02.054Z","repository":{"id":48638787,"uuid":"170815360","full_name":"komomoo/crossorigin-webpack-plugin","owner":"komomoo","description":"📦 Add the crossorigin attribute to HTML scripts(CORS), support webpack v2/3/4/5 | 为 HTML 脚本添加 crossorigin 属性（跨域支持），支持 webpack v2/3/4/5，支持最新 webpack5","archived":false,"fork":false,"pushed_at":"2021-11-19T08:55:59.000Z","size":50,"stargazers_count":19,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T08:44:06.340Z","etag":null,"topics":["crossorigin-attributes","webpack","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/komomoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-15T06:46:18.000Z","updated_at":"2024-03-24T13:18:55.000Z","dependencies_parsed_at":"2022-09-03T08:52:48.585Z","dependency_job_id":null,"html_url":"https://github.com/komomoo/crossorigin-webpack-plugin","commit_stats":null,"previous_names":["wannaxiao/crossorigin-webpack-plugin"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fcrossorigin-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fcrossorigin-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fcrossorigin-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fcrossorigin-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komomoo","download_url":"https://codeload.github.com/komomoo/crossorigin-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227457121,"owners_count":17777944,"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":["crossorigin-attributes","webpack","webpack-plugin","webpack5"],"created_at":"2024-08-02T09:01:02.206Z","updated_at":"2024-12-01T00:16:47.122Z","avatar_url":"https://github.com/komomoo.png","language":"JavaScript","readme":"# crossorigin-webpack-plugin\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n## ✨ Features\n\n- Zero-config, easy to use\n- Support webpack v2/3/4/5，support the latest webpack5\n- Support html-webpack-plugin v2/3/4/5\n\n## 🚀 QuickStart\n\n### Install\n\n```bash\nyarn add -D crossorigin-webpack-plugin # OR npm i -D crossorigin-webpack-plugin\n```\n\n### Usage\n\n\u003e Please put it after `HtmlWebpackPlugin`\n\n```js\nconst CrossoriginWebpackPlugin = require('crossorigin-webpack-plugin')\n\nconst webpackConfig = {\n  /* ... */\n  plugins: [\n    new HtmlWebpackPlugin(),\n    new CrossoriginWebpackPlugin(),\n  ],\n  /* ... */\n}\n```\n\n### Config\n\n\u003e Default config: `{ crossorigin: 'anonymous' }`\n\n```js\nnew CrossoriginWebpackPlugin({ crossorigin: 'anonymous' })\n```\n\n---\n\n😉😘 If it is helpful to you，please encourage me with a \u003cb\u003e⭐️\u003ca href=\"#\"\u003eStar\u003c/a\u003e\u003c/b\u003e ~\n\n## [Changelog](./CHANGELOG.md)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, komo\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fcrossorigin-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomomoo%2Fcrossorigin-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fcrossorigin-webpack-plugin/lists"}