broccoli-autoprefixer
Advanced tools
Comparing version 3.0.0 to 4.0.0
12
index.js
'use strict'; | ||
var Filter = require('broccoli-filter'); | ||
var objectAssign = require('object-assign'); | ||
var autoprefixer = require('autoprefixer-core'); | ||
var postcss = require('postcss'); | ||
var autoprefixer = require('autoprefixer'); | ||
@@ -12,2 +12,4 @@ function AutoprefixerFilter(inputTree, options) { | ||
Filter.call(this, inputTree); | ||
this.inputTree = inputTree; | ||
@@ -30,3 +32,3 @@ this.options = options || {}; | ||
// support explicit override of inline sourcemaps | ||
if (opts.sourcemap != null) { | ||
if (opts.sourcemap !== null || opts.sourcemap !== undefined) { | ||
opts.map = opts.sourcemap ? 'inline' : false; | ||
@@ -37,4 +39,4 @@ } | ||
.process(str, opts) | ||
.then(function (res) { | ||
var warnings = res.warnings(); | ||
.then(function (result) { | ||
var warnings = result.warnings(); | ||
@@ -45,3 +47,3 @@ if (warnings.length > 0) { | ||
return res.css; | ||
return result.css; | ||
}) | ||
@@ -48,0 +50,0 @@ .catch(function (err) { |
{ | ||
"name": "broccoli-autoprefixer", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Prefix CSS using Autoprefixer", | ||
@@ -13,6 +13,6 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
"node": ">=0.12.0" | ||
}, | ||
"scripts": { | ||
"test": "broccoli build temp && mocha" | ||
"test": "xo && broccoli build temp && mocha" | ||
}, | ||
@@ -34,6 +34,6 @@ "files": [ | ||
"dependencies": { | ||
"autoprefixer-core": "^5.0.0", | ||
"broccoli-filter": "^0.1.6", | ||
"object-assign": "^2.0.0", | ||
"postcss": "^4.1.11" | ||
"autoprefixer": "^6.0.0", | ||
"broccoli-filter": "^1.2.2", | ||
"object-assign": "^4.0.1", | ||
"postcss": "^5.0.4" | ||
}, | ||
@@ -44,4 +44,5 @@ "devDependencies": { | ||
"mocha": "*", | ||
"rimraf": "^2.2.6" | ||
"rimraf": "^2.2.6", | ||
"xo": "*" | ||
} | ||
} |
# [broccoli](https://github.com/joliss/broccoli)-autoprefixer [![Build Status](https://travis-ci.org/sindresorhus/broccoli-autoprefixer.svg?branch=master)](https://travis-ci.org/sindresorhus/broccoli-autoprefixer) | ||
> Prefix CSS using [Autoprefixer](https://github.com/ai/autoprefixer) | ||
> Prefix CSS using [Autoprefixer](https://github.com/postcss/autoprefixer) | ||
*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/ai/autoprefixer/issues).* | ||
*Issues with the output should be reported on the Autoprefixer [issue tracker](https://github.com/postcss/autoprefixer/issues).* | ||
@@ -29,9 +29,6 @@ | ||
##### browsers | ||
See the Autoprefixer [options](https://github.com/postcss/autoprefixer#options). | ||
Type: `array` | ||
Default: `['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1']` | ||
In addition, you can set this option: | ||
The [browsers](https://github.com/ai/autoprefixer#browsers) you need to support. | ||
##### sourcemap | ||
@@ -51,12 +48,5 @@ | ||
##### cascade | ||
Type: `boolean` | ||
Default: `true` | ||
Autoprefixer changes CSS indentation to create a nice [visual cascade](https://github.com/ai/autoprefixer#visual-cascade) of prefixes. | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) |
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
44
4868
5
51
+ Addedautoprefixer@^6.0.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedautoprefixer@6.7.7(transitive)
+ Addedbroccoli-filter@1.3.0(transitive)
+ Addedbroccoli-kitchen-sink-helpers@0.3.1(transitive)
+ Addedbroccoli-plugin@1.3.1(transitive)
+ Addedbrowserslist@1.7.7(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcopy-dereference@1.0.0(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedelectron-to-chromium@1.5.80(transitive)
+ Addedensure-posix-path@1.1.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@1.0.0(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedmatcher-collection@1.1.2(transitive)
+ Addedms@2.0.0(transitive)
+ Addednormalize-range@0.1.2(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpostcss@5.2.18(transitive)
+ Addedpostcss-value-parser@3.3.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.03.2.3(transitive)
+ Addedwalk-sync@0.3.4(transitive)
- Removedautoprefixer-core@^5.0.0
- Removedamdefine@1.0.1(transitive)
- Removedautoprefixer-core@5.2.1(transitive)
- Removedbroccoli-filter@0.1.14(transitive)
- Removedbroccoli-kitchen-sink-helpers@0.2.9(transitive)
- Removedbroccoli-writer@0.1.1(transitive)
- Removedbrowserslist@0.4.0(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedjs-base64@2.1.9(transitive)
- Removedmkdirp@0.3.5(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedpostcss@4.1.16(transitive)
- Removedsource-map@0.4.4(transitive)
- Removedwalk-sync@0.1.3(transitive)
Updatedbroccoli-filter@^1.2.2
Updatedobject-assign@^4.0.1
Updatedpostcss@^5.0.4