Skip to content

\t minification #142

Closed
Closed
@HoraceSupertramp

Description

@HoraceSupertramp

I just checked the minified output code of an application i developed using this plugin. Comes out that, unlike spaces, none of the tab characters within CSS template literals get omitted during minification.

As an example, the following styled components occurring in my project's code

const Header = styled.div`
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	padding: 0.8em 1.6em;
	background: peachpuff;
`;

gets compiled into

a=i.default.div.withConfig({displayName:"Header",componentId:"sc-m1ream"})`	display:flex;	align-items:center;	justify-content:space-between;	font-weight:600;	padding:0.8em 1.6em;	background:peachpuff;`

leaving those tabs behind. Isn't it supposed to remove those too?
Thank you in advance.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions