Skip to content
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

fix: disable emptyOutDir in production mode (#177) #180

Merged
merged 3 commits into from
Jan 18, 2022

Conversation

zealot128
Copy link
Contributor

See #177 - assets been deleted between deployments.

Not sure, if there any other places to edit. I guess the ENV variables are populated automatically and transformed to camelcase options?

@ElMassimo
Copy link
Owner

Hi Stefan, thanks for your contribution!

In order to add support for an environment variable, it would be necessary to add it to default.vite.json. However, I see environment variables as an useful device for settings that affect both the Ruby portion of the code and vite-plugin-ruby.

For this particular feature, users that want to clear the directory can use vite.config.ts instead.

@ElMassimo ElMassimo changed the title feat: allow setting emptyOutDir config and set it to false in production mode (#177) fix: disable emptyOutDir in production mode (#177) Jan 18, 2022
@ElMassimo ElMassimo merged commit d9b6225 into ElMassimo:main Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants