{"id":13805710,"url":"https://github.com/kimroen/ember-cli-autoprefixer","last_synced_at":"2025-04-05T09:07:46.754Z","repository":{"id":472194,"uuid":"20935865","full_name":"kimroen/ember-cli-autoprefixer","owner":"kimroen","description":"Automatically run your styles through autoprefixer","archived":false,"fork":false,"pushed_at":"2023-03-06T16:31:38.000Z","size":3875,"stargazers_count":103,"open_issues_count":17,"forks_count":25,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-03T16:18:48.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/kimroen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-06-17T18:57:13.000Z","updated_at":"2021-11-22T17:34:55.000Z","dependencies_parsed_at":"2023-07-05T14:56:26.938Z","dependency_job_id":null,"html_url":"https://github.com/kimroen/ember-cli-autoprefixer","commit_stats":{"total_commits":92,"total_committers":21,"mean_commits":4.380952380952381,"dds":0.5217391304347826,"last_synced_commit":"4053bc53635710a97773803a4bf0e1e0aa1f63c6"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimroen%2Fember-cli-autoprefixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimroen%2Fember-cli-autoprefixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimroen%2Fember-cli-autoprefixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimroen%2Fember-cli-autoprefixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimroen","download_url":"https://codeload.github.com/kimroen/ember-cli-autoprefixer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312078,"owners_count":20918344,"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-08-04T01:01:04.075Z","updated_at":"2025-04-05T09:07:46.690Z","avatar_url":"https://github.com/kimroen.png","language":"JavaScript","funding_links":[],"categories":["Packages","Ember CLI Addons"],"sub_categories":["CSS \u0026 etc","Build Enhancements"],"readme":"# Autoprefixer for Ember CLI [![Build Status](https://github.com/kimroen/ember-cli-autoprefixer/actions/workflows/ci.yml/badge.svg)](https://github.com/kimroen/ember-cli-autoprefixer/actions/workflows/ci.yml)\nThis addon runs the styles of your Ember CLI-project through\nAutoprefixer.\n\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.20 or above\n* Ember CLI v3.20 or above\n* Node.js v12 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-cli-autoprefixer\n```\n\n## Options\nThis addon first consumes your browser list config from `config/targets.js`.  This is the browser list for Babel.\n\nYou can manually configure what browsers to target for autoprefixer only.  Add the target browsers to your package.json\nas per https://github.com/browserslist/browserslist#readme, add a `.browserslistrc` file, or configure `overrideBrowsersList`\nin `ember-cli-build.js`.\n\n```js\n// ember-cli-build.js\nvar app = new EmberApp(defaults, {\n  autoprefixer: {\n    overrideBrowserslist: ['IE11'],\n    cascade: false\n  }\n});\n```\n\nThis would prefix styles as required by the two latest version of ios, and disable the cascade (see below).\n\nYou can disable Autoprefixer by passing in `enabled: false`.\n\nOther options would also go here along with `overrideBrowserslist`, `enabled` and `cascade`.\n\nYou can read more about these settings and others [over on the Autoprefixer page](https://github.com/postcss/autoprefixer#options).\n\n## Note on using with ember-cli-sass\n\nAutoprefixer doesn't play well with `.css.map` files, but it will work with embedded source maps. This means there are two options.\n\nIf you want to disable CSS sourcemaps from ember-cli-sass update `ember-cli-build.js` to\n\n```js\n  sassOptions: {\n    // This tells ember-cli-sass to avoid generating the sourcemap file (like vendor.css.map)\n    sourceMap: false\n  }\n```\n\nAlternatively, you may use embedded source maps.  So we tell `ember-cli-sass` to embed the sourcemaps and then turn on sourcemaps with autoprefixer which will update the embedded sourcemap after adding prefixes.\n\n```js\n  sassOptions: {\n    sourceMap: true,\n    sourceMapEmbed: true\n  },\n  autoprefixer: {\n    enabled: true,\n    cascade: true,\n    sourcemap: true\n  }\n```\n\nAlso note you can optionally disable in production!\n\n```js\n  const envIsProduction = (process.env.EMBER_ENV === 'production');\n\n  ...\n\n  sassOptions: {\n    sourceMap: !envIsProduction,\n    sourceMapEmbed: !envIsProduction\n  },\n  autoprefixer: {\n    enabled: true,\n    cascade: true,\n    sourcemap: !envIsProduction\n  }\n```\n\n## References\n- [Autoprefixer](https://github.com/postcss/autoprefixer)\n- [broccoli-autoprefixer](https://github.com/sindresorhus/broccoli-autoprefixer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimroen%2Fember-cli-autoprefixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimroen%2Fember-cli-autoprefixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimroen%2Fember-cli-autoprefixer/lists"}