This repository was archived by the owner on Jan 16, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Labels
No labels