0.1.2 • Published 8 years ago
dot-loader v0.1.2
dot loader for webpack
Usage
var template = require("dot!./file.dot");
// => returns file.dot compiled as template functionRecommended config
module.exports = {
module: {
loaders: [
{
test: /\.dot$/,
loader: "dot-loader",
options: {
// your custom dot options
}
}
]
}
};Then you only need to write: require("./file.dot")