Socket
Socket
Sign inDemoInstall

ember-cli-autoprefixer

Package Overview
Dependencies
106
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.0 to 1.0.0

2

CHANGELOG.md
## 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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc