Skip to content

Clarification on some code #120

Open
@chopfitzroy

Description

@chopfitzroy

Hey @egoist sorry to be a pain but I am trying to unserstand what you are doing here and can not figure it out at all, could you explain this block:

const mfs = settings.fileSystem;
const file = path.join(dev.output.path, 'index.html');
settings.waitUntilValid();

express proxy
app.get('*', (req, res) => {
    settings.waitUntilValid(() => {
        const html = mfs.readFileSync(file);
        res.end(html);
    });
});

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions