postcss
Advanced tools
Comparing version 4.1.12 to 4.1.13
@@ -0,1 +1,4 @@ | ||
## 4.1.13 | ||
* Fix input inlined source maps with UTF-8 encoding. | ||
## 4.1.12 | ||
@@ -2,0 +5,0 @@ * Update Promise polyfill. |
@@ -57,9 +57,12 @@ 'use strict'; | ||
PreviousMap.prototype.decodeInline = function decodeInline(text) { | ||
var utf64 = 'data:application/json;charset=utf-8;base64,'; | ||
var b64 = 'data:application/json;base64,'; | ||
var uri = 'data:application/json,'; | ||
var base64 = 'data:application/json;base64,'; | ||
if (this.startWith(text, uri)) { | ||
return decodeURIComponent(text.substr(uri.length)); | ||
} else if (this.startWith(text, base64)) { | ||
return _jsBase64.Base64.decode(text.substr(base64.length)); | ||
} else if (this.startWith(text, b64)) { | ||
return _jsBase64.Base64.decode(text.substr(b64.length)); | ||
} else if (this.startWith(text, utf64)) { | ||
return _jsBase64.Base64.decode(text.substr(utf64.length)); | ||
} else { | ||
@@ -66,0 +69,0 @@ var encoding = text.match(/data:application\/json;([^,]+),/)[1]; |
{ | ||
"name": "postcss", | ||
"version": "4.1.12", | ||
"version": "4.1.13", | ||
"description": "Tool for transforming CSS with JS plugins", | ||
@@ -34,5 +34,5 @@ "keywords": [ | ||
"yaspeller": "2.4.0", | ||
"gulp-util": "3.0.5", | ||
"gulp-util": "3.0.6", | ||
"gulp-run": "1.6.8", | ||
"fs-extra": "0.20.0", | ||
"fs-extra": "0.20.1", | ||
"sinon": "1.15.3", | ||
@@ -42,3 +42,3 @@ "mocha": "2.2.5", | ||
"chai": "3.0.0", | ||
"babel": "5.6.2" | ||
"babel": "5.6.4" | ||
}, | ||
@@ -45,0 +45,0 @@ "scripts": { |
@@ -155,5 +155,7 @@ # PostCSS [![Build Status][ci-img]][ci] [![Gitter][chat-img]][chat] | ||
With [`postcss-plugin-context`] you can run different plugins | ||
on different parts of CSS. | ||
There is two way to make PostCSS magic more explicit. | ||
Define a plugins contexts and switch between them in different parts of CSS | ||
by [`postcss-plugin-context`]: | ||
```css | ||
@@ -170,3 +172,14 @@ .css-example.is-test-for-css4-browsers { | ||
Or to enable plugins right in CSS by [`postcss-use`]: | ||
```css | ||
@use autoprefixer(browsers: ['last 2 versions']); | ||
:fullscreen a { | ||
display: flex | ||
} | ||
``` | ||
[`postcss-plugin-context`]: https://github.com/postcss/postcss-plugin-context | ||
[`postcss-use`]: https://github.com/postcss/postcss-use | ||
@@ -191,2 +204,3 @@ ### Packs | ||
* [`postcss-color-rebeccapurple`] supports the `rebeccapurple` color. | ||
* [`postcss-conic-gradient`] supports the `conic-gradient` background. | ||
* [`postcss-custom-media`] supports custom aliases for media queries. | ||
@@ -350,2 +364,3 @@ * [`postcss-custom-properties`] supports variables, using syntax from | ||
[`postcss-color-function`]: https://github.com/postcss/postcss-color-function | ||
[`postcss-conic-gradient`]: https://github.com/jonathantneal/postcss-conic-gradient | ||
[`postcss-convert-values`]: https://github.com/ben-eb/postcss-convert-values | ||
@@ -352,0 +367,0 @@ [`postcss-pseudoelements`]: https://github.com/axa-ch/postcss-pseudoelements |
139953
2569
535