neutrino-middleware-postcss
is a Neutrino middleware that adds support for
PostCSS plugins.
Install this middleware to your development dependencies, then set it up in
.neutrinorc.js
just like you would with regular postcss-loader:
const autoprefixer = require('autoprefixer');
module.exports = {
use: [
"neutrino-preset-web",
["neutrino-middleware-postcss", {
plugins: [
autoprefixer()
]
}]
],
...
};
Just use neutrino-preset-postcss-cssnext.
This preset works well with neutrino-preset-extractstyles.