{"id":30732561,"url":"https://github.com/yanghuabei/edp-build-cdn","last_synced_at":"2025-09-03T17:10:17.659Z","repository":{"id":57219674,"uuid":"81407768","full_name":"yanghuabei/edp-build-cdn","owner":"yanghuabei","description":"CDN processor for edp-build.","archived":false,"fork":false,"pushed_at":"2017-02-10T05:06:11.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T05:23:06.846Z","etag":null,"topics":["cdn","edp","edp-build","edp-build-processor"],"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/yanghuabei.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":"2017-02-09T04:06:53.000Z","updated_at":"2017-03-25T12:58:02.000Z","dependencies_parsed_at":"2022-08-28T23:22:33.093Z","dependency_job_id":null,"html_url":"https://github.com/yanghuabei/edp-build-cdn","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yanghuabei/edp-build-cdn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanghuabei%2Fedp-build-cdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanghuabei%2Fedp-build-cdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanghuabei%2Fedp-build-cdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanghuabei%2Fedp-build-cdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanghuabei","download_url":"https://codeload.github.com/yanghuabei/edp-build-cdn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanghuabei%2Fedp-build-cdn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273477174,"owners_count":25112626,"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-09-03T02:00:09.631Z","response_time":76,"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":["cdn","edp","edp-build","edp-build-processor"],"created_at":"2025-09-03T17:09:46.954Z","updated_at":"2025-09-03T17:10:17.541Z","avatar_url":"https://github.com/yanghuabei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edp-build-cdn\n\n![Build Status](https://img.shields.io/travis/yanghuabei/edp-build-cdn.svg)\n![Coverage](https://img.shields.io/coveralls/yanghuabei/edp-build-cdn.svg)\n![Downloads](https://img.shields.io/npm/dm/edp-build-cdn.svg)\n![Downloads](https://img.shields.io/npm/dt/edp-build-cdn.svg)\n![npm version](https://img.shields.io/npm/v/edp-build-cdn.svg)\n![dependencies](https://img.shields.io/david/yanghuabei/edp-build-cdn.svg)\n![dev dependencies](https://img.shields.io/david/dev/yanghuabei/edp-build-cdn.svg)\n![License](https://img.shields.io/npm/l/edp-build-cdn.svg)\n\nProcessor for edp-build to add cdn support.\n\n## Getting Started\n\nInstall it via npm:\n\n```shell\nnpm install edp-build-cdn\n```\n\nAnd include in your project:\n\n```javascript\nimport CDNProcessor from 'edp-build-cdn';\n\nlet CDNProcessor = require('edp-build-cdn').default;\n\nlet processor = new CDNProcessor({\n    name: 'CDNProcessor',\n    // cdn加速域名\n    domain: '//xxx.xxcdn.com',\n    // cdn上的资源\n    resourceTypes: '*.{js,css,png}',\n    // 部署目录\n    dist: 'app',\n    // 需要处理的文件类型，目前仅支持html\n    files: [\n        '*.html'\n    ],\n    // 是否需要在html head中增加cdn域名的prefetch\n    enableDNSPrefetch: true\n});\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanghuabei%2Fedp-build-cdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanghuabei%2Fedp-build-cdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanghuabei%2Fedp-build-cdn/lists"}