neutrino-preset-extractstyles
is a Neutrino preset that adds support for
extracting css to its own files using extract-text-webpack-plugin.
It differs from neutrino-middleware-extractstyles by supporting
other loaders in the style
rule. It is therefore safe to use with
neutrino-middleware-postcss and
neutrino-preset-postcss-cssnext.
Install this preset to your development dependencies, then set it in
.neutrinorc.js
:
module.exports = {
use: [
"neutrino-preset-web",
"neutrino-preset-extractstyles",
],
...
};
Extra options can be passed both to loader options (options.loader
) and
plugin options (options.plugin
).