Skip to content

Adding Hapi To The Other Servers Section Of README #1374

@antonio-malcolm

Description

@antonio-malcolm

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

Hi all, it's good to meet everyone.

I noticed, on the webpack-dev-middleware README, a section for combining it with other servers. Currently, I have both the dev middleware and hot reloading middleware working with Hapi, in what I think is an interesting use case. It may be a bit complex, as-is, as an example, however, if there's interest, and no one's gotten to it yet, I think it could be simplified / adapted for the README

Your Proposal for Changes

Adding a Hapi server configuration to the README.

The relevant configuration, for both middleware and server, can be viewed, via the Github link below. There are two files - one which digests a Webpack configuration module, modifies that module's object, to manage and track whatever is available in the dev middleware's in-memory file system, and provide useful information describing such to the client.

I imagine it's not exactly obvious why one would do this, but the project itself is it, and the project is a monorepo, and this approach, while a bit more laborious up-front, pays off in the long term.

If you think the configuration linked below is useful, I'd be happy to assist in reducing it into something more readily digestible. The core, essentials of the configuration would be much the same, methinks.

https://github.com/antonio-malcolm/interreaction/tree/master/server

Cheers,
~Antonio

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions