In #1549, I've introduced the format: false option to remove whitespaces when generating CSS. However, I've forgotten to update jss-plugin-global to support it, so as a result, all @global CSS rules were not formatted.
This PR fixes the above issue by making sure the format option is passed to jss-plugin-global rules.
Todo
[x] Add test(s) that verify the modified behavior
Expectations on Changes
Indentation and line breaks are removed for @global rules when format: false is passed to SheetsRegistry.toString or rule.toString methods.
Corresponding Issue(s): #1566
What Would You Like to Add/Fix?
In #1549, I've introduced the
format: false
option to remove whitespaces when generating CSS. However, I've forgotten to updatejss-plugin-global
to support it, so as a result, all@global
CSS rules were not formatted.This PR fixes the above issue by making sure the
format
option is passed tojss-plugin-global rules
.Todo
Expectations on Changes
Indentation and line breaks are removed for
@global
rules whenformat: false
is passed to SheetsRegistry.toString or rule.toString methods.Changelog
@global
rules