gulp-bundle-templates

Bundles external templates into your index.html

Usage no npm install needed!

<script type="module">
  import gulpBundleTemplates from 'https://cdn.skypack.dev/gulp-bundle-templates';
</script>

README

Gulp Bundle Templates

bundles external template files into your index.html

Require the templates with an template tag and the markup will be included inside the template tags as if it was always there.

<template id="main-tpl" src="../templates/snipets/main.html"></template>