-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Vite] fileReplacements is not working for dev-server #13758
Comments
I've created PR #13761 to fix this issue |
Thanks for the PR! I added some comments. :D The |
@mandarini Thanks for your help! Yeah I agree maybe its better to support |
Might be a bit off-topic but also its better to allow passing the |
@nodegin I'll take a note of that suggestion, sure! Will keep in the discussions about keeping or not the RE: |
@mandarini For MODE, yes I think currently it doesn't work well for me. From the doc
I think it should accept the NX configurations name instead? Also, I tried to create a "staging": {
"buildTarget": "core:build:staging",
"mode": "development"
} Did I misplaced the file or missed something? |
I think you can try with the latest Nx regarding the |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
fileReplacements is not working for dev-server (i.e. serve command)
Expected Behavior
When specifying the
fileReplacements
in the project.json and running with configuration, the file should also be replaced in local dev server, not just bundling production build.Github Repo
No response
Steps to Reproduce
fileReplacements
to the project.jsonNx Report
Failure Logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: