{"id":20504313,"url":"https://github.com/stencil-community/stencil-postcss","last_synced_at":"2025-09-11T02:32:58.488Z","repository":{"id":29391502,"uuid":"121530037","full_name":"stencil-community/stencil-postcss","owner":"stencil-community","description":"Autoprefixer plugin for Stencil","archived":false,"fork":false,"pushed_at":"2023-10-31T14:54:57.000Z","size":113,"stargazers_count":31,"open_issues_count":13,"forks_count":25,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-10T22:57:52.720Z","etag":null,"topics":["autoprefixer","autoprefixer-plugin","postcss","postcss-plugins","stencil","stenciljs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@stencil-community/postcss","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stencil-community.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-14T15:59:38.000Z","updated_at":"2025-01-03T22:07:03.000Z","dependencies_parsed_at":"2024-06-18T18:16:16.035Z","dependency_job_id":"a4e28733-c173-41bb-9690-9fc69f6598c2","html_url":"https://github.com/stencil-community/stencil-postcss","commit_stats":{"total_commits":41,"total_committers":16,"mean_commits":2.5625,"dds":0.7804878048780488,"last_synced_commit":"ba6788923e5c04e449cf07c7f6b06d43ef15b7cf"},"previous_names":["ionic-team/stencil-postcss"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/stencil-community/stencil-postcss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-postcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-postcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-postcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-postcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stencil-community","download_url":"https://codeload.github.com/stencil-community/stencil-postcss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stencil-community%2Fstencil-postcss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271097709,"owners_count":24698745,"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-08-19T02:00:09.176Z","response_time":63,"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":["autoprefixer","autoprefixer-plugin","postcss","postcss-plugins","stencil","stenciljs"],"created_at":"2024-11-15T19:37:18.680Z","updated_at":"2025-08-20T04:32:47.648Z","avatar_url":"https://github.com/stencil-community.png","language":"TypeScript","funding_links":[],"categories":[":wrench: Stencil Tools","Plugins"],"sub_categories":["Stencil Styling","Community"],"readme":"# @stencil-community/postcss\n\nThis package is used in order to integrate with postcss and all of its plugins.\n\nFirst, npm install within the project:\n\n```\nnpm install @stencil-community/postcss --save-dev\n```\n\nNext, within the project's `stencil.config.ts` file, import the plugin and add\nit to the `plugins` config. In the example below we're using the `autoprefixer` postcss plugin, so you'll also have to run:\n\n```\nnpm install autoprefixer @types/autoprefixer --save-dev\n```\n\nThis plugin requires Node.js 14 or higher. For older Node versions, see the 1.x release.\n\n#### stencil.config.ts\n```ts\nimport { Config } from '@stencil/core';\nimport { postcss } from '@stencil-community/postcss';\nimport autoprefixer from 'autoprefixer';\n\nexport const config: Config = {\n  plugins: [\n    postcss({\n      plugins: [autoprefixer()]\n    })\n  ]\n};\n```\n\nDuring development, this plugin will use postcss to process any plugins you may\nhave passed along.\n\n## Options\n\nPostcss has an ecosystem of plugins itself (a plugin for a plugin if you will).\nFor our example, we're using the autoprefixer plugin, and configuring its\noptions. Note, you can pass any valid autoprefixer option.\n\n```js\nexports.config = {\n  plugins: [\n    postcss({\n      plugins: [\n        autoprefixer({\n          browsers: ['last 6 versions'],\n          cascade: false\n        })\n      ]\n    })\n  ]\n};\n```\n\n### Inject Globals Paths\n\nThe `injectGlobalPaths` config is an array of paths that automatically get added as `@import` declarations to all components. This can be useful to inject variables, mixins and functions to override defaults of external collections. Relative paths within `injectGlobalPaths` should be relative to the `stencil.config.js` file.\n\n```js\nexports.config = {\n  plugins: [\n    postcss({\n      injectGlobalPaths: [\n        'src/globals/variables.pcss',\n        'src/globals/mixins.pcss'\n      ]\n    })\n  ]\n};\n```\n\nNote that each of these files are always added to each component, so in most cases they shouldn't contain CSS because it'll get duplicated in each component. Instead, `injectGlobalPaths` should only be used for Sass variables, mixins and functions, but not contain any CSS.\n\n## Valid file extensions\n\nThis plugin will only transpile files whose extensions are `.css`, `.pcss`, or `.postcss`.\n\n## Related\n\n* [postcss](https://github.com/postcss/postcss)\n* [autoprefixer](https://github.com/postcss/autoprefixer)\n* [Stencil](https://stenciljs.com/)\n* [Stencil Worldwide Slack](https://stencil-worldwide.slack.com)\n* [Ionic Components](https://www.npmjs.com/package/@ionic/core)\n* [Ionicons](http://ionicons.com/)\n\n## Contributing\n\nPlease see our [Contributor Code of\nConduct](https://github.com/ionic-team/ionic/blob/master/CODE_OF_CONDUCT.md) for\ninformation on our rules of conduct.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstencil-community%2Fstencil-postcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstencil-community%2Fstencil-postcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstencil-community%2Fstencil-postcss/lists"}