var template = require("dot!./file.dot");
// => returns file.dot compiled as template function
module.exports = {
module: {
loaders: [
{
test: /\.dot$/,
loader: "dot-loader",
options: {
// your custom dot options
}
}
]
}
};
Then you only need to write: require("./file.dot")