4.0.0

@iamvdo iamvdo released this Sep 30, 2015 · 19 commits to master since this release

Break from 3.0.0

  • No longer support Node.js 0.10, add support for Node.js 4
  • Pleeease's API is now async only to match PostCSS guidelines.
// old way in pleeease 3.0.0
var result = pleeease.process(css, opts);
// result.css
// result.map

// new way in pleeease 4.0.0
pleeease.process(css, opts).process(function (result) {
  // result.css
  // result.map
}).catch(function (err) {
  // err
});

// or with PostCSS
postcss([pleeease(opts)]).process(css, opts).then( ... );
  • Remove pleeease.NEXT. If you rely on it, you should read this issue. Use cssnext instead directly, or add it to your workflow with the new modules option (see below).

Added

  • Use PostCSS 5
  • Use Autoprefixer 6 and all other PostCSS modules based on PostCSS 5
  • Use node-sass 3 (Libsass), Stylus 0.52
  • New modules option to add own PostCSS plugin before or after Pleeease's ones.
// add color function
var opts = {
   modules: {
      after: [
            require("postcss-color-function")
      ]
   }
};
var css = "a { background: color(red a(90%)) }";
pleeease.process(css, opts).then(function (result) {
   // result.css == "a{background:rgba(255,0,0,.9)}"
});
  • New vmin option to convert vmin unit for IE9 (#11)

Fixed

  • browsers key no longer override autoprefixer's one (#43)

Downloads