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

src: Add hot reload option for development #73

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

kamoltat
Copy link
Member

@kamoltat kamoltat commented Feb 2, 2024

Allow hot reload in Development mode for
pulpito-ng. This saves a lot more time
when developing with other tech stacks.

@kamoltat kamoltat self-assigned this Feb 2, 2024
Copy link

netlify bot commented Feb 2, 2024

Deploy Preview for pulpito ready!

Name Link
🔨 Latest commit a6f8888
🔍 Latest deploy log https://app.netlify.com/sites/pulpito/deploys/65c25975e878970008210803
😎 Deploy Preview https://deploy-preview-73--pulpito.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kamoltat
Copy link
Member Author

kamoltat commented Feb 2, 2024

@VallariAg Sorry I closed the other one by accident, staging, and forgot to create a commit before force pushing lol

Anyways, I got rid of the package-lock changes.

@@ -20,6 +20,10 @@ export default defineConfig(() => {
],
server: {
port: 8081,
host: true,
watch: {
usePolling: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good! Just one small thing: according to the docs, usePolling uses high CPU utilisation so we should probably be using this for developer setup only and not production env? https://vitejs.dev/config/server-options#server-watch

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good!

Allow hot reload in Development mode for
pulpito-ng. This saves a lot more time
when developing with other tech stacks.

Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
@kamoltat kamoltat force-pushed the wip-ksirivad-add-start-container branch from c5b3262 to a6f8888 Compare February 6, 2024 16:08
@kamoltat
Copy link
Member Author

kamoltat commented Feb 6, 2024

@VallariAg updated the vite.config.js just need approval for merge

@kamoltat kamoltat added the enhancement Making existing feature better label Feb 6, 2024
@kamoltat kamoltat merged commit 249a7b5 into ceph:main Feb 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making existing feature better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants