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

Usage with webpack hmr? #161

Closed
leesiongchan opened this Issue Aug 14, 2017 · 7 comments

Comments

Projects
None yet
9 participants
@leesiongchan

leesiongchan commented Aug 14, 2017

Is there a chance to integrate with webpack-dev-middleware and webpack-hot-middleware?

@leesiongchan leesiongchan changed the title from Usage with hmr? to Usage with webpack hmr? Aug 14, 2017

@mcollina

This comment has been minimized.

Member

mcollina commented Aug 16, 2017

@leesiongchan thanks for reaching out! We never tried, but I think it should be doable. Let us know if you try :). It would actually be a nice plugin if it could be pluginified?

@jberry93

This comment has been minimized.

jberry93 commented Oct 23, 2017

@mcollina I made a simple plugin that may need some additions if you are interested. Could I make a PR on fastify's repo or is there a fastify-webpack repo I can open a PR on? Thanks!

@valentinvichnal

This comment has been minimized.

valentinvichnal commented Dec 5, 2017

@jberry93 Is there a public repo for this? I can help you with the plugin.

@ansarizafar

This comment has been minimized.

ansarizafar commented Dec 5, 2017

@mcollina We can also use backpack-core https://github.com/jaredpalmer/backpack

Backpack is a minimalist build system for Node.js projects.

@simoroshka

This comment has been minimized.

simoroshka commented Feb 21, 2018

can backpack work with fastify now, or do you need to integrate it first?

@mcollina

This comment has been minimized.

Member

mcollina commented Feb 22, 2018

I think backpack is not related to fastify, so you should be able to use it.
However I'm not recommending anyone to use that.

@ianwalter

This comment has been minimized.

ianwalter commented Apr 26, 2018

This isn't exactly what you're looking for because it's meant for Vue.js SSR, but I created https://github.com/ianwalter/fastify-vue which uses webpack-dev-middleware and webpack-hot-middleware. It's still kind of rough around the edges, but it's not much code to read. I gave a little thought to extracting more general plugins out of it, but did not reach any conclusions. I would be up for collaborating on it though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment