-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
File references lost in production #69
Comments
Have you looked at the generated |
Yepp all files are there. |
Okay, I know what this is... The build setup that used to work in Vite pre 2.6, but now appears to be broken. In the Vite root dir, I have an alias
but now it resolves the alias as part of the path:
...which is not the desired result. Changing I'll be creating a minimum reproducible repository, and filing an issue on the Vite issues page shortly. |
Filed an issue: vitejs/vite#5415 |
Would there be any temporary work around? Facing a live production soon. |
Yeah you can just move the I've considered adding a patch fix to the Vite plugin to work around the situation too, because I do want to keep the alias/file structure in place |
For me personally on build it did not generate the complete path, it instead generated a key like this (Using Vite 2.6.14) |
They've apparently addressed this in Vite 2.7.0-beta.4 -- I plan to have a look at it shortly. |
Confirmed fixed in |
Describe the bug
Since the latest releases of the Vite build & the Vite plugin the site in production mode seems to have lost connection to the build files. The files are build and correctly moved into the css/dist directory. But while opening the page in production (useDevServer' => false) there are no file references in the HEAD to these files.
I've installed a new version nystudio/craft vite set-up in a fresh new docker. And even with that setup the same issue occurs.
To reproduce
Steps to reproduce the behaviour:
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
The text was updated successfully, but these errors were encountered: