Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: just return content with devFlag + html content #164

Closed
wants to merge 3 commits into from

Conversation

underfin
Copy link
Member

@underfin underfin commented May 16, 2020

fix #161.#160

return (
devFlag +
html!.replace(scriptRE, (matched, openTag, script) => {
debugHmr(matched, openTag, script)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For unmatched script tag.

if (
ctx.path === '/index.html' ||
Object.values(config.entry as object).includes(ctx.path)
) {
let html = await readBody(ctx.body)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reslove multi entry.

@yyx990803
Copy link
Member

see #161 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After build, dev server run in error process is not defined
2 participants