Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minifier is breaking some CSS, specifically calc(100% + 5px) #16

Open
khmelevskii opened this issue Mar 18, 2018 · 3 comments
Open

Minifier is breaking some CSS, specifically calc(100% + 5px) #16

khmelevskii opened this issue Mar 18, 2018 · 3 comments

Comments

@khmelevskii
Copy link

.issue {
    width: calc(100% + 30px);
}

turns into
.issue{width:calc(100%+30px)}
instead of
.issue{width:calc(100% + 30px)}

Notice the missing spaces

@yogthos
Copy link
Owner

yogthos commented Mar 18, 2018

CSS minification is handled by the YUI Compressor library, so it looks like it might be a bug there. Asset minifier is on the latest version, so one approach might be to look for an alternative library.

@kengruven
Copy link

Looks like yui/yuicompressor#268 to me. Strangely, that issue was recently closed, without comment, and with any recent changes.

@yogthos
Copy link
Owner

yogthos commented Mar 31, 2019

It looks like it might be worth looking at other options if the yuicompressor isn't actively maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants