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

Minify css will transform rgba to #rrggbbaa box-shadow #5070

Closed
7 tasks done
dongH555 opened this issue Sep 24, 2021 · 1 comment · Fixed by #5132
Closed
7 tasks done

Minify css will transform rgba to #rrggbbaa box-shadow #5070

dongH555 opened this issue Sep 24, 2021 · 1 comment · Fixed by #5132

Comments

@dongH555
Copy link

Describe the bug

box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.13);
image

Reproduction

#app {
box-shadow: -5px 3px 5px 6px rgba(210, 209, 209, 0.3);
}

#app {
box-shadow: -5px 3px 5px 6px #d2d1d14d;
}

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 9.96 GB / 15.84 GB
  Binaries:
    Node: 14.17.3 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.73)
    Internet Explorer: 11.0.19041.906
  npmPackages:
    vite: ^2.5.0 => 2.5.0

Used Package Manager

npm

Logs

No response

Validations

@dongH555 dongH555 changed the title Minify css will transform rgba to #rrggbbaa Minify css will transform rgba to #rrggbbaa box-shadow Sep 24, 2021
@bluwy
Copy link
Member

bluwy commented Sep 25, 2021

See https://esbuild.github.io/content-types/#css. To prevent this, set build.target to one that does not support this syntax.

haoqunjiang added a commit to haoqunjiang/vite that referenced this issue Sep 29, 2021
patak-dev pushed a commit that referenced this issue Oct 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants