Skip to content

Files

Latest commit

8cc9ec8 · Apr 17, 2017

History

History
51 lines (38 loc) · 1.91 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.91 KB

bless-css-webpack-plugin

A webpack plugin for bless CSS

project unmaintained npm version Build Status codecov Dependency Status devDependency Status

** Notice **

I no longer use this project as we dropped support at work for IE9 and below. If you would like to take ownership of this project please reach out to me on twitter or via my website. Thanks!

Installation

Install the plugin with npm:

npm install --save-dev bless-css-webpack-plugin

Usage

const BlessCSSWebpackPlugin = require('bless-css-webpack-plugin');

// in your webpack config
{
  plugins: [
    new BlessCSSWebpackPlugin(options)
  ]
}

options

  • sourceMap - set to true to enable sourcemaps. Default false.
  • addImports - set to true to inject @import rules for generated files. Default false.

Differences from bless-webpack-plugin

  • Works with the html webpack plugin
  • Has tests
  • Uses bless 4.0
  • Works with sourcemaps

Credits

  • The webpack source code and readme for how to write a plugin
  • The original bless-webpack-plugin plugin

License

MIT