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

vite can't pack svg into css, but png can #7451

Closed
7 tasks done
peakDragonCheung opened this issue Mar 25, 2022 · 1 comment
Closed
7 tasks done

vite can't pack svg into css, but png can #7451

peakDragonCheung opened this issue Mar 25, 2022 · 1 comment

Comments

@peakDragonCheung
Copy link

peakDragonCheung commented Mar 25, 2022

Describe the bug

image

Reproduction

https://stackblitz.com/edit/vitejs-vite-zqzyhk?file=src/App.svelte

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i5-10500 CPU @ 3.10GHz
    Memory: 11.30 GB / 31.72 GB
  Binaries:
    Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.36)
    Internet Explorer: 11.0.19041.1202
  npmPackages:
    vite: ^2.8.0 => 2.8.6

Used Package Manager

npm

Logs

vite v2.8.6 building for production...
✓ 9 modules transformed.
dist/assets/file_bg.f8fde818.svg   1.09 KiB
dist/index.html                    0.50 KiB
dist/assets/index.f4f850ce.js      2.15 KiB / gzip: 1.13 KiB
dist/assets/vendor.be9a72b0.js     3.15 KiB / gzip: 1.45 KiB
dist/assets/index.cf80e917.css     0.85 KiB / gzip: 0.45 KiB

Validations

@sapphi-red
Copy link
Member

I think this is duplicate of #1204.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants