Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 16, 2018. It is now read-only.
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

webpack --watch works, would it be faster webpack-dev-middleware? #6

Open
@landabaso

Description

I'm interested in combining this example with webpack-dev-middleware or webpack-dev-server (if possible).

My experience is it would take less time to bundle the final files using webpack-dev-middleware thainstead of webpack --watch.

The issue here is how to require the generated page to use it with Express.

Right now it is simply required as:
var page = require("./page.generated.js");

But this generated file is now in the Memory Filesystem.

Probably I should use something like:

middleware.fileSystem.readFileSync

Is that the right direction? Do you have any example, idea or advice?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /