{"id":18120129,"url":"https://github.com/stoically/parcel-plugin-html-externals","last_synced_at":"2025-04-14T17:30:56.959Z","repository":{"id":52699739,"uuid":"196253444","full_name":"stoically/parcel-plugin-html-externals","owner":"stoically","description":"ParcelJS plugin to ignore certain script and stylesheet link tags in html files marked as externals","archived":false,"fork":false,"pushed_at":"2021-05-07T01:58:24.000Z","size":19,"stargazers_count":17,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T05:18:56.665Z","etag":null,"topics":[],"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/stoically.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":"2019-07-10T18:07:27.000Z","updated_at":"2021-05-23T17:59:28.000Z","dependencies_parsed_at":"2022-08-25T22:41:56.719Z","dependency_job_id":null,"html_url":"https://github.com/stoically/parcel-plugin-html-externals","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/stoically%2Fparcel-plugin-html-externals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoically%2Fparcel-plugin-html-externals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoically%2Fparcel-plugin-html-externals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoically%2Fparcel-plugin-html-externals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stoically","download_url":"https://codeload.github.com/stoically/parcel-plugin-html-externals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223639403,"owners_count":17177816,"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-11-01T05:18:32.353Z","updated_at":"2024-11-08T06:03:00.621Z","avatar_url":"https://github.com/stoically.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ParcelJS plugin to ignore certain script and stylesheet link tags in html files marked as externals.\n\n\u003e Parcel will probably support externals out of the box in the future, [related issue here](https://github.com/parcel-bundler/parcel/issues/144).\n\u003e\n\u003e If you're looking for a way to declare externals instead of ignoring them, you might want to check out [parcel-plugin-externals](https://github.com/FlorianRappl/parcel-plugin-externals)\n\n### Install\n\n```\nnpm install --save-dev parcel-plugin-html-externals\n```\n\n### Usage\n\nPut an `externals` key into your `package.json`, e.g.\n\n```json\n{\n  \"externals\": {\n    \"vendor/**/*\": false\n  }\n}\n```\n\nwill ignore all script / stylesheet link tags whose src / href attribute starts with `vendor/`, e.g\n\n```html\n\u003cscript src=\"vendor/thirdparty.min.js\"\u003e\u003c/script\u003e\n```\n\nThe externals key can be a string or any glob accepted by [minimatch](https://github.com/isaacs/minimatch),\nthe value must be `false` to trigger ignoring.\n\n\n### Caveats\n\nThe plugin monkey patches Parcel internals by extending the HTMLAsset class and proxying its ast walker, so it might just break in an upcoming version.\n\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoically%2Fparcel-plugin-html-externals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstoically%2Fparcel-plugin-html-externals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoically%2Fparcel-plugin-html-externals/lists"}