How can I exclude some files from vite build? #19284
Closed
Illia-S-dev
started this conversation in
General
Replies: 1 comment
-
I found where was an error. Just using excluded file inside component. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there. I need to exclude (ignore) some files from vite prod build. They are needed only for tests (vitests environment).
I tried to use
in vite config.
P.S I took an example here https://stackoverflow.com/questions/75412767/how-to-tell-vite-to-exclude-a-subset-of-files-in-a-directory-from-build
But I got the following error in the browser
I also tried to add this
But the same error after building.
Is there idea how can I exclude files from prod build?
Beta Was this translation helpful? Give feedback.
All reactions