Timber is a tool for clean up styles.
Install as a dependency.
$ npm install --save https://github.com/DrevaSergii/css-cleaner.git#master
Open your favorite Terminal and run this commands to start the program.
$ cd css-cleaner
$ npm install
$ npm run build
$ npm run test
Example:
const Cleaner = require('css-cleaner');
const cleaner = new Cleaner({
sort: {
...
},
});
cleaner.clean('source.css')
.then(() => console.log('Clean Success!'))
.catch((error) => console.error(error));
Common options:
sort
: order rules.
MIT