-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
asset filename hash options does not work on image #2654
Comments
@narusas please edit the description of this issue respecting the issue template, checking all checkboxes as required and adding the system info. You are also encouraged to include a minimal reproduction so it is easier to test. Thanks. |
Hello @narusas. Please provide a online reproduction by codesandbox or a minimal GitHub repository. Issues labeled by |
I have the same problem. Images still have hash. |
Currently, asset names are hardcoded, the asset plugin does not use the Rollup configuration: vite/packages/vite/src/node/plugins/asset.ts Line 227 in eb66b43
|
@Linrstudio @zerofairnight could you provide a minimal reproduction so it is easier for others to debug this issue? |
Describe the bug
code
vite.config.js
npm run build
Another asset files have
-HASH-
chunk, but logo.png does not-HASH-
chunk.Reproduction
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager:
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: