csscomb-loader

CSScomb loader for webpack

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
csscomb-loader
0.0.29 years ago9 years agoMinified + gzip package size for csscomb-loader in KB

Readme

CSScomb Loader for Webpack
Format CSS coding style with CSScomb and Webpack.

If you have any difficulties with the output of this plugin, please use the CSScomb tracker.

How to Install

NPM

npm install csscomb-loader --save-dev

How to Use

Option 1: Via command line:
webpack ./src/app.js ./build/app.js --module-bind 'css=style!css!csscomb'

Option 2: Configuration file:
module.exports = {
    entry: './src/app.js',
    output: {
        filename: 'app.js',
        path: './build'
    },
    module: {
        loaders: [
            { test: /\.css$/, loader: 'style!css!csscomb' }
        ]
    }
};

License

MIT (c) Konstantin Tarkus (@koistya)