-
Notifications
You must be signed in to change notification settings - Fork 22
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
Include publicDir: false in vite.config.js #17
Comments
It's weird I don't see the I get the same error. Seems like |
Just a small update, I currently updated the scripts in
Seems to work. |
Thank you @marcelkorpel, You're totally right ! |
for your information, I added a new feature to |
When building a project for deployment I run
npm run build
, which runsvite build
. By default, Vite will copy all assets in/public
to the build directory. However, this is generally not what you want with the Symfony/public
directory: apart from useless files likeindex.php
it will also copy bundles in/public/bundles
, so a directory is created. At this moment, you will run into trouble withnpm run dev
, which outputs:You can circumvent this whole copying behaviour by adding
to
vite.config.js
.Would this be a sane default to add to the README?
The text was updated successfully, but these errors were encountered: