broccoli-autoprefixer
Advanced tools
Comparing version 0.4.0 to 0.4.1
10
index.js
@@ -22,8 +22,12 @@ 'use strict'; | ||
AutoprefixerFilter.prototype.processString = function (str, relativePath) { | ||
var opts = objectAssign({}, this.options, { | ||
map: this.options.sourcemap ? 'inline' : false, | ||
var opts = objectAssign({ | ||
from: relativePath, | ||
to: relativePath | ||
}); | ||
}, this.options); | ||
// support explicit override of inline sourcemaps | ||
if (opts.sourcemap != null) { | ||
opts.map = opts.sourcemap ? 'inline' : false; | ||
} | ||
return autoprefixer(opts.browsers).process(str, opts).css; | ||
@@ -30,0 +34,0 @@ }; |
{ | ||
"name": "broccoli-autoprefixer", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Prefix CSS using Autoprefixer", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -10,3 +10,3 @@ # [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) | ||
```bash | ||
```sh | ||
$ npm install --save broccoli-autoprefixer | ||
@@ -34,3 +34,3 @@ ``` | ||
Type: `Array` | ||
Type: `array` | ||
Default: `['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1']` | ||
@@ -40,5 +40,5 @@ | ||
#### sourcemap | ||
##### sourcemap | ||
Type: `Boolean` | ||
Type: `boolean` | ||
Default: `true` if the input has a sourcemap, otherwise `false` | ||
@@ -55,4 +55,5 @@ | ||
## License | ||
[MIT](http://opensource.org/licenses/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
3328
27
56