-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat: add magicHtml
option
#3717
Conversation
d89393e
to
f42dd7e
Compare
Codecov Report
@@ Coverage Diff @@
## master #3717 +/- ##
==========================================
+ Coverage 93.20% 93.21% +0.01%
==========================================
Files 15 15
Lines 1324 1327 +3
Branches 458 460 +2
==========================================
+ Hits 1234 1237 +3
Misses 83 83
Partials 7 7
Continue to review full report at Codecov.
|
So, what does this |
@0rvar The doc is not very clear. This image is from this stackoverflow from over 5 years ago, but I think it best describes what the magicHtml option does. Also, it seems to corroborate what I see in the unit tests of this PR. |
@0rvar @NicolasBonduel we also have an example /~https://github.com/webpack/webpack-dev-server/tree/master/examples/magic-html |
@0rvar It automatically generates HTML, which includes the specified JS file, via the path without If console.log("Hello world");
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"/></head>
<body><script type="text/javascript" charset="utf-8" src="/foo/app.js"></script></body>
</html> which then |
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
add
magicHtml
option.Breaking Changes
None
Additional Info
No