dot-loader

dot template loader for webpack

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
dot-loader
0.1.26 years ago9 years agoMinified + gzip package size for dot-loader in KB

Readme

dot loader for webpack

Usage

Documentation: Using loaders
var template = require("dot!./file.dot");
// => returns file.dot compiled as template function

Recommended config

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

Then you only need to write: require("./file.dot")