Skip to content

Neutrino preset for extracting css files to a separate bundle.

Notifications You must be signed in to change notification settings

barraponto/neutrino-preset-extractstyles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neutrino ExtractStyles preset

NPM version NPM downloads Join Slack

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.

Documentation

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).

About

Neutrino preset for extracting css files to a separate bundle.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published