examples/html/template.md
This example demonstrates the experimental HTML modules support
(experiments.html) in two ways:
./src/index.html): emitted as a standalone
dist/index.html. Its <link rel="stylesheet">, inline <style>,
<script src>, inline <script>, and are all
bundled, and the references are rewritten to the emitted assets.<script src="./app.js">
imports ./src/fragment.html. An HTML module imported from JS exports its
URL-rewritten HTML as a string and is not emitted as a standalone file.
There is no JavaScript entry point — the script is reached through the HTML._{{webpack.config.js}}_
_{{src/index.html}}_
_{{src/app.js}}_
_{{src/fragment.html}}_
_{{src/styles.css}}_
The HTML entry point, emitted as a standalone file with every reference rewritten to the bundled asset.
_{{dist/index.html}}_
_{{stdout}}_
_{{production:stdout}}_