8000 [Bug]: Lite preset doesn't trim whitespace at start of line · Issue #1642 · cssnano/cssnano · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug]: Lite preset doesn't trim whitespace at start of line #1642

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

Open
iccir opened this issue Jul 1, 2024 · 1 comment
Open

[Bug]: Lite preset doesn't trim whitespace at start of line #1642

iccir opened this issue Jul 1, 2024 · 1 comment

Comments

@iccir
Copy link
iccir commented Jul 1, 2024

Describe the bug

When using the lite preset, whitespace at the beginning of a line is sometimes not trimmed.

Expected behaviour

I expect to see duplicate spaces removed.

Steps to reproduce

Minimize this example in the playground.

Actual result:

.foo .bar,
        .foo .baz{display:none}

Expected result:

.foo .bar,.foo .baz{display:none}

or even:

.foo .bar,
.foo .baz{display:none}

Version

7.0.3

Preset

lite

Environment

System:
    OS: macOS 11.7.4
    CPU: (20) x64 Intel(R) Xeon(R) W-2150B CPU @ 3.00GHz
    Memory: 14.96 GB / 64.00 GB
    Shell: 5.8 - /bin/zsh

Package details

├── cssnano@7.0.3
├── postcss@8.4.38

Additional context

No response

@ludofischer
Copy link
Collaborator

Interesting case, a criteria for including a transform in the lite preset does not seem to be documented anywhere. Is there a reason you expected the lite preset to remove that whitespace?

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

No branches or pull requests

2 participants
0