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

@landabaso

Description

@landabaso

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