csscomb-loader

CSScomb loader for Webpack. Allows to format CSS coding style at a build time and/or lint your CSS

MIT License

Downloads
115
Stars
7

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 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' }
        ]
    }
};

Reference Articles

License

MIT (c) Konstantin Tarkus (@koistya)