Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koistya/csscomb-loader
CSScomb loader for Webpack. Allows to format CSS coding style at a build time and/or lint your CSS
https://github.com/koistya/csscomb-loader
Last synced: 15 days ago
JSON representation
CSScomb loader for Webpack. Allows to format CSS coding style at a build time and/or lint your CSS
- Host: GitHub
- URL: https://github.com/koistya/csscomb-loader
- Owner: koistya
- License: mit
- Created: 2015-01-24T16:02:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-26T05:57:56.000Z (almost 10 years ago)
- Last Synced: 2024-10-04T12:00:41.566Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CSScomb Loader for Webpack
> Format CSS coding style with [CSScomb](http://csscomb.com/) and [Webpack](http://webpack.github.io/).
*If you have any difficulties with the output of this plugin, please use the
[CSScomb tracker](https://github.com/csscomb/csscomb.js/issues).*## How to Install
[![NPM](https://nodei.co/npm/csscomb-loader.png?compact=true)](https://www.npmjs.org/package/csscomb-loader)
```sh
npm install csscomb-loader --save-dev
```## How to Use
**Option 1**: Via command line:
```shell
webpack ./src/app.js ./build/app.js --module-bind 'css=style!css!csscomb'
```**Option 2**: Configuration file:
```js
module.exports = {
entry: './src/app.js',
output: {
filename: 'app.js',
path: './build'
},
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css!csscomb' }
]
}
};
```## Reference Articles
* [Sorting CSS properties, the better way](http://www.smashingmagazine.com/2012/10/02/csscomb-tool-sort-css-properties/) by Vyacheslav Oliyanchuk
* [Reduce file size with CSS Sorting](http://peteschuster.com/2014/12/reduce-file-size-css-sorting/) by Pete Schuster## License
[MIT](./LICENSE.txt) (c) Konstantin Tarkus ([@koistya](https://twitter.com/koistya))