Skip to content

ross-pfahler/dot-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")