postcss-flexbugs-fixes
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -0,0 +0,0 @@ var postcss = require('postcss'); |
@@ -0,0 +0,0 @@ var postcss = require('postcss'); |
@@ -0,0 +0,0 @@ var postcss = require('postcss'); |
@@ -0,1 +1,4 @@ | ||
## 4.1.0 | ||
* Add option to disable bug fixes [#53](https://github.com/luisrudge/postcss-flexbugs-fixes/pull/53) | ||
## 4.0.0 | ||
@@ -2,0 +5,0 @@ * upgrade to postcss 7 |
14
index.js
@@ -9,3 +9,3 @@ var postcss = require('postcss'); | ||
module.exports = postcss.plugin('postcss-flexbugs-fixes', function (opts) { | ||
opts = opts || {}; | ||
var options = Object.assign({ bug4: true, bug6: true, bug81a: true }, opts); | ||
@@ -21,7 +21,13 @@ return function (css) { | ||
} | ||
bug4(d); | ||
bug6(d); | ||
bug81a(d); | ||
if (options.bug4) { | ||
bug4(d); | ||
} | ||
if (options.bug6) { | ||
bug6(d); | ||
} | ||
if (options.bug81a) { | ||
bug81a(d); | ||
} | ||
}); | ||
}; | ||
}); |
{ | ||
"name": "postcss-flexbugs-fixes", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "PostCSS plugin This project tries to fix all of flexbug's issues", | ||
@@ -5,0 +5,0 @@ "keywords": ["postcss", "css", "postcss-plugin", "flexbugs", "flexbox", "flex"], |
@@ -66,2 +66,8 @@ # PostCSS Flexbugs Fixes [![Build Status][ci-img]][ci] | ||
You can also disable bugs individually, possible keys `bug4`, `bug6` and `bug8a`. | ||
```js | ||
var plugin = require('postcss-flexbugs-fixes'); | ||
postcss([plugin({ bug6: false })]); | ||
``` | ||
See [PostCSS] docs for examples for your environment. | ||
@@ -68,0 +74,0 @@ |
Sorry, the diff of this file is not supported yet
8339
104
77