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:css plugin output duplicate asset name #10136

Closed
7 tasks done
yzydeveloper opened this issue Sep 15, 2022 · 3 comments
Closed
7 tasks done

vite:css plugin output duplicate asset name #10136

yzydeveloper opened this issue Sep 15, 2022 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@yzydeveloper
Copy link
Contributor

yzydeveloper commented Sep 15, 2022

Describe the bug

I packaged css as an entry file, and the expected asset name is not as expected, such as duplication caused by chunkName rewriting, plugins/css.ts. is not just css.

For details, see minimal example: vite-css-post-plugin-demo.

Related PR #9485

Reproduction

https://github.com/yzydeveloper/vite-css-post-plugin-demo

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (4) x64 Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz   
    Memory: 3.12 GB / 7.89 GB
  Binaries:
    Node: 16.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.22.0 - ~\AppData\Roaming\npm\npm.CMD
  Browsers:
    Chrome: 105.0.5195.102
    Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.33)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-legacy: ^2.0.0 => 2.0.0
    vite: ^3.0.0 => 3.0.4

Used Package Manager

pnpm

Logs

No response

Validations

@sapphi-red
Copy link
Member

related: #9877

@yzydeveloper
Copy link
Contributor Author

related: #9877

This issue's related PR has resolved this issue fix: css-post/emitFile uses chunkName

@sapphi-red
Copy link
Member

Duplicate of #9877

@sapphi-red sapphi-red marked this as a duplicate of #9877 Jun 4, 2023
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Jun 4, 2023
@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage feat: css labels Jun 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants