-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
When Built with configure assetFileNames, the assets not found #4503
Comments
Hello @kooriookami. Please provide a minimal reproduction using a GitHub repository or codesandbox. Issues marked with |
@sodatea Here it is. https://github.com/kooriookami/vite-assets-error npm run build |
you need to set base to default value "/" or don't set base. related logic vite/packages/vite/src/node/plugins/css.ts Line 352 in 0209086
|
Of course, you can set other values as well, but |
Thx, but in some case, I dunno the absolute url, so I have to set a |
Then you can consider not setting the base, in most cases it is applicable. |
I have the same problem |
I was able to reproduce with Vite 2.9.9. |
#7644 was released in 3.0.0-alpha.1, so it should be another PR. But great this is solved anyway :) |
I was lying 🤦♂️. It was 3.0.0-alpha.1. (I was using |
Describe the bug
When project built, run the dist. The page will load all assets in
css
dictionary, actually the assets aren't in this dictionary.Reproduction
No response
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: