2.2.0-beta11 • Published 8 years ago
bless-css-webpack-plugin-extended v2.2.0-beta11
bless-css-webpack-plugin
A webpack plugin for bless CSS
Installation
Install the plugin with yarn:
yarn add bless-css-webpack-plugin --devInstall the plugin with npm:
npm install --save-dev bless-css-webpack-pluginUsage
const BlessCSSWebpackPlugin = require('bless-css-webpack-plugin');
// in your webpack config
{
plugins: [
new BlessCSSWebpackPlugin(options)
]
}options
files- An array of files that you want blessed:['ie', 'other-style-sheet']. Defaultfalse, all files will be blessed if they're large enough.minimize- set totrueto enable minification with CleanCSS. NOTE: if sourceMaps are turned on this will disable minimize! Defaultfalse.sourceMap- set totrueto enable sourcemaps. Defaultfalse.addImports- set totrueto inject @import rules for generated files. Defaultfalse.
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-pluginplugin
License
MIT
2.2.0-beta11
8 years ago
2.2.0-beta10
8 years ago
2.2.0-beta9
8 years ago
2.2.0-beta8
8 years ago
2.2.0-beta7
8 years ago
2.2.0-beta5
8 years ago
2.2.0-beta4
8 years ago
2.2.0-beta3
8 years ago