<script> tags in an HTML document to reference the correct URLs for generated bundles.
This test bundles the scripts referenced by
<script> tags in an HTML page. For tools that don't support using an HTML file as the "entry" for a build, a plugin is added that adds this functionality. The simple test page contains a single
<script>, which should be replaced with its bundled URL.
<!DOCTYPE html> <script src="./index.js"></script>
console.log('this is script');
index.js, and a copy of
index.html with the script's
src updated to reference that bundle's hashed URL.