{"id":21321878,"url":"https://github.com/snowpact/gatsby-plugin-external-css","last_synced_at":"2025-07-18T05:07:49.236Z","repository":{"id":57244638,"uuid":"375773229","full_name":"snowpact/gatsby-plugin-external-css","owner":"snowpact","description":"Add external custom css files to your generated html pages","archived":false,"fork":false,"pushed_at":"2021-07-16T11:24:07.000Z","size":233,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T17:04:32.593Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowpact.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-10T17:08:38.000Z","updated_at":"2021-07-16T11:24:10.000Z","dependencies_parsed_at":"2022-09-01T06:12:08.841Z","dependency_job_id":null,"html_url":"https://github.com/snowpact/gatsby-plugin-external-css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snowpact/gatsby-plugin-external-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-plugin-external-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-plugin-external-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-plugin-external-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-plugin-external-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowpact","download_url":"https://codeload.github.com/snowpact/gatsby-plugin-external-css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowpact%2Fgatsby-plugin-external-css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265703582,"owners_count":23814033,"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-21T20:11:25.279Z","updated_at":"2025-07-18T05:07:49.216Z","avatar_url":"https://github.com/snowpact.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-external-css\n\n\u003ca href=\"https://www.npmjs.com/package/gatsby-plugin-external-css\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/v/gatsby-plugin-external-css.svg?style=popout\" alt=\"Current npm package version\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/gatsby-plugin-external-css\"\u003e\n\u003cimg src=\"https://img.shields.io/npm/dw/gatsby-plugin-external-css.svg?style=popout\" alt=\"Downloads per month on npm.\" title=\"Downloads per month on npm.\" /\u003e\n\u003c/a\u003e\n\n\nAdd external custom css files to your generated html pages.\n\n## Installation\n\n```bash\nnpm install gatsby-plugin-external-css\n```\n\nor\n\n```bash\nyarn add gatsby-plugin-external-css\n```\n\n## Usage\n\nThis plugin lets you add a custom css file in your builded public index.html.\nYou probably don't need this as it's for very specific usage.\n\nIn my case, I'm generating different gatsby projects based on a config, and I'm providing a custom way to give a css file out of the src folder scope.\n\n##### Add the following plugin to your `gatsby-config.js`\n\nCreate \n\n```js\n// gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-plugin-external-css',\n      options: {\n        source: 'full/local/path.css',\n      },\n    },\n  ],\n}\n```\nBe sure that the file exists.\n\nThe file will be copied into the final public file with a custom cache busting.\nThe css file will be appended at the last of the \u003chead\u003e meta.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowpact%2Fgatsby-plugin-external-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowpact%2Fgatsby-plugin-external-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowpact%2Fgatsby-plugin-external-css/lists"}