Neutrino PostCSS middleware
neutrino-middleware-postcss
is a Neutrino middleware that adds support for
PostCSS plugins.
Documentation
Install this middleware to your development dependencies, then set it up in
.neutrinorc.js
just like you would with regular postcss-loader:
const autoprefixer = ; moduleexports = use: "neutrino-preset-web" "neutrino-middleware-postcss" plugins: ... ;
cssnext
neutrino-preset-postcss-cssnext is on hold until cssnext supports PostCSS 6.x.
Using with ExtractTextPlugin
The neutrino-middleware-extractstyles
package resets the style configuration.
An alternative approach would be to let the middleware re-use the style rule
loaders. There's an alternative middleware available in a
gist.