coala-dot-loader

coala.js & dot.js webpack loader

Usage no npm install needed!

<script type="module">
  import coalaDotLoader from 'https://cdn.skypack.dev/coala-dot-loader';
</script>

README

dot loader for webpack

Usage

Documentation: Using loaders

var template = require("coala-dot!./file.html");
// => returns file.html compiled as template function

Recommended config

module.exports = {
  module: {
    loaders: [
      { test: /\.html$/, loader: "coala-dot-loader" }
    ]
  }
};