ember-cli-autoprefixer is an Ember CLI addon designed to automatically add vendor prefixes to CSS rules in Ember applications, leveraging the popular PostCSS plugin Autoprefixer. It integrates directly into the Ember CLI build pipeline, processing stylesheets before they are served. The current stable version is 2.0.0. While it doesn't have a fixed release cadence, updates typically align with major releases of `broccoli-autoprefixer`, Autoprefixer itself, or significant changes in Ember CLI's build system (e.g., `config/targets.js`). Key differentiators include its seamless integration, automatic consumption of project-wide browser targets defined in `config/targets.js`, and explicit support for overriding browser targets or configuring Autoprefixer options directly within `ember-cli-build.js`. It also provides detailed guidance for managing CSS sourcemaps, especially when used in conjunction with `ember-cli-sass`, to prevent common build and debugging issues.
npm install ember-cli-autoprefixerVerified import paths — ran on the pinned version, not inferred.
This quickstart installs the addon and demonstrates basic configuration in `ember-cli-build.js`, including setting browser targets and managing sourcemap generation based on the environment.
Upgrade your Node.js environment to version 4 or higher. For actively maintained Ember CLI projects, Node 16+ is generally recommended.
Migrate your browser targets from the `browsers` array within `autoprefixer` options to either `config/targets.js` or use the `overrideBrowserslist` option: `autoprefixer: { overrideBrowserslist: [...] }`.To resolve sourcemap conflicts, either disable CSS sourcemaps for `ember-cli-sass` entirely (`sassOptions: { sourceMap: false }`), or enable embedded sourcemaps for both (`sassOptions: { sourceMap: true, sourceMapEmbed: true }`, `autoprefixer: { sourcemap: true }`).Ensure you are using `ember-cli-autoprefixer` version `0.8.1` or higher to correctly handle asset fingerprinting with autoprefixed styles.
Upgrade your Node.js environment to version 4 or higher. For optimal compatibility with recent Ember CLI versions, use Node 16+.
Verify `autoprefixer: { enabled: true }` in `ember-cli-build.js`. Check `overrideBrowserslist` or `config/targets.js` for correct browser definitions. If using `ember-cli-sass`, review sourcemap configuration as per the warnings.Replace `browsers: [...]` with `overrideBrowserslist: [...]` within your `autoprefixer` options in `ember-cli-build.js`, or define your targets in `config/targets.js`.
No dependency data recorded yet.