You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because a class name can contain any character (as long as it is properly escaped), splitting a string back to an array has slightly more edge cases to it than joining an array to a string. So to avoid the edge cases, we will always store the classMap as an array. However, I suspect the majority of users will prefer having the JSON already in a joined string format. So perhaps the easiest option is to just output both during the JS task.
The default classMap from red-perfume-css uses arrays of atomized classes, like so:
Because a class name can contain any character (as long as it is properly escaped), splitting a string back to an array has slightly more edge cases to it than joining an array to a string. So to avoid the edge cases, we will always store the classMap as an array. However, I suspect the majority of users will prefer having the JSON already in a joined string format. So perhaps the easiest option is to just output both during the JS task.
Related to #12
The text was updated successfully, but these errors were encountered: