ember-cli-autoprefixer
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -0,1 +1,6 @@ | ||
## master | ||
## 0.7.0 | ||
+ Support for the new `targets` feature coming in Ember-CLI 2.13. Read all about it [on @rwjblue's blog](http://rwjblue.com/2017/04/21/ember-cli-targets/). Thanks to [@rwjblue](https://github.com/rwjblue) and [@cibernox](https://github.com/cibernox) for working on it. [#34](https://github.com/kimroen/ember-cli-autoprefixer/pull/34) | ||
## 0.6.0 | ||
@@ -2,0 +7,0 @@ + Updated structure to the newest ember-cli project structures [#22](https://github.com/kimroen/ember-cli-autoprefixer/pull/22) and [#29](https://github.com/kimroen/ember-cli-autoprefixer/pull/29) |
@@ -9,3 +9,4 @@ /* jshint node: true */ | ||
name: 'ember-cli-autoprefixer', | ||
included: function(app, parentAddon) { | ||
included: function(app) { | ||
this.app = app; | ||
@@ -18,8 +19,12 @@ | ||
this._super.included.apply(this, arguments); | ||
this.options = defaults(this.app.options.autoprefixer || {}, { | ||
browsers: this.project.targets && this.project.targets.browsers, | ||
enabled: true | ||
}); | ||
this.enabled = this.options.enabled; | ||
delete this.options.enabled; | ||
}, | ||
postprocessTree: function(type, tree) { | ||
@@ -26,0 +31,0 @@ if ((type === 'all' || type === 'styles') && this.enabled) { |
{ | ||
"name": "ember-cli-autoprefixer", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Process styles in an ember-cli application using Autoprefixer", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -13,4 +13,5 @@ # 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) | ||
## Options | ||
You can configure what browsers to target and other options by specifying them in your | ||
`ember-cli-build.js` (or `Brocfile.js`). An example: | ||
By default ember-cli-autoprefixer passes your projects target browsers (in Ember CLI >= 2.13.0) | ||
to autoprefixer. However, you can manually configure what browsers to target and other options by | ||
specifying them in your `ember-cli-build.js` (or `Brocfile.js`). An example: | ||
@@ -17,0 +18,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6958
31
37