项目作者: barraponto

项目描述 :
cssnext support in Neutrino.
高级语言: JavaScript
项目地址: git://github.com/barraponto/neutrino-preset-postcss-cssnext.git


Neutrino CSSNext preset

NPM version NPM downloads
Join Slack

neutrino-preset-cssnext is a Neutrino preset that adds support for
cssnext.

Documentation

Install this preset to your development dependencies, then set it in
.neutrinorc.js:

  1. module.exports = {
  2. use: [
  3. "neutrino-preset-web",
  4. "neutrino-preset-cssnext",
  5. ],
  6. ...
  7. };

You can configure the features through options object, following the
instructions at cssnext documentation and the
Browserslist query syntax).

This is an example using options:

  1. module.exports = {
  2. use: [
  3. "neutrino-preset-web",
  4. ["neutrino-preset-cssnext", {
  5. browsers: ["> 1%", "last 2 versions"],
  6. }],
  7. ],
  8. ...
  9. };

Breaking Changes

Bumping to Neutrino 7 and cssnext 3.
The most meaningful change is in image-set polyfill.
See https://github.com/MoOx/postcss-cssnext/releases/tag/3.0.0