clean-css / clean-css-cli

The command line interface to clean-css CSS optimizer
MIT License
302 stars 17 forks source link

[Feature Request] Load options from configuration file #91

Open TrebledJ opened 11 months ago

TrebledJ commented 11 months ago

CleanCSS is a robust library and provides a plethora of different options for minification, formatting, and optimisation. However, when a developer tunes many different options, they may become lost in the sea of one-line text.

This situation is similar to many formatting engines. Their solution? Allow the option to load from a config file. Doing so presents the options in a more human-readable, structured, and maintainable format. Personally, I like YAML. It would be great to have such an option with the CleanCSS CLI.

jakubpawlowicz commented 11 months ago

Hey @TrebledJ. It would be nice indeed, however I don't have time to implement this. Any takers are more than welcome!