ember-cli-autoprefixer
Advanced tools
Comparing version 1.0.0-beta.0 to 1.0.0
## master | ||
### 0.9.0 | ||
### 1.0.0-beta.0 | ||
@@ -5,0 +5,0 @@ [BREAKING] - Will trigger deprecation warnings from autoprefixer if you still use the `browsers` key in `ember-cli-build`. To maintain this approach, change the key name to `overrideBrowserslist`. The preferred approach is now to use a `.browserlistrc` file, or add a `browserslist` item to your `package.json`. See https://github.com/browserslist/browserslist#readme for more information. |
{ | ||
"name": "ember-cli-autoprefixer", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0", | ||
"description": "Process styles in an ember-cli application using Autoprefixer", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -35,4 +35,47 @@ # Autoprefixer for Ember CLI [![Build Status](https://travis-ci.org/kimroen/ember-cli-autoprefixer.svg?branch=master)](https://travis-ci.org/kimroen/ember-cli-autoprefixer) | ||
## Note on using with ember-cli-sass | ||
Autoprefixer doesn't play well with `.css.map` files, but it will work with embedded source maps. This means there are two options. | ||
If you want to disable CSS sourcemaps from ember-cli-sass update `ember-cli-build.js` to | ||
```js | ||
sassOptions: { | ||
// This tells ember-cli-sass to avoid generating the sourcemap file (like vendor.css.map) | ||
sourceMap: false | ||
} | ||
``` | ||
Alternatively, 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. | ||
```js | ||
sassOptions: { | ||
sourceMapEmbed: true | ||
}, | ||
autoprefixer: { | ||
enabled: true, | ||
cascade: true, | ||
sourcemap: true | ||
} | ||
``` | ||
Also note you can optionally disable in production! | ||
```js | ||
const envIsProduction = (process.env.EMBER_ENV === 'production'); | ||
... | ||
sassOptions: { | ||
sourceMapEmbed: !envIsProduction | ||
}, | ||
autoprefixer: { | ||
enabled: true, | ||
cascade: true, | ||
sourcemap: !envIsProduction | ||
} | ||
``` | ||
## References | ||
- [Autoprefixer](https://github.com/postcss/autoprefixer) | ||
- [broccoli-autoprefixer](https://github.com/sindresorhus/broccoli-autoprefixer) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9250
0
81
0