renatoi / react-style-webpack-plugin

Webpack plugin to extract React Style style declarations into CSS bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Style Webpack plugin

This package provides plugin for Webpack which extracts static React Style declarations into a separate CSS bundle.

The usage as simple as adding few lines of configuration into your webpack.config.js:

var ReactStylePlugin = require('react-style-webpack-plugin');

module.exports = {
  ...
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: ReactStylePlugin.loader()
      }
    ]
  },
  plugins: [
    new ReactStylePlugin('bundle.css')
  ]
}

About

Webpack plugin to extract React Style style declarations into CSS bundle


Languages

Language:JavaScript 99.2%Language:Makefile 0.8%