Closed briganti closed 3 years ago
I am not sure regarding "uglify" as an option name, because it may let people think its gonna do more than removing white spaces, but we won't add anything else than whitespace removal because real modification is costly at runtime.
How about "removeWhitespace" or "compact" or "format"
If "format" it would be true
by default.
Thanks for the fast review @kof. I've updated the PR to take into account your feedback.
merged, thank you
What Would You Like to Add/Fix?
This PR adds a new option
format
toSheetsRegistry.toString
so whitespaces are removed from stringified CSS.Todo
Expectations on Changes
Indentation and line breaks are removed when
format: false
is passed toSheetsRegistry.toString
orrule.toString
methods.Changelog
format
for removing whitespaces inSheetsRegistry.toString(options)