If you have any difficulties with the output of this plugin, please use the CSScomb tracker.
npm install csscomb-loader --save-dev
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' }
]
}
};
- Sorting CSS properties, the better way by Vyacheslav Oliyanchuk
- Reduce file size with CSS Sorting by Pete Schuster