0.1.1 • Published 7 years ago
dot-loader-with-image v0.1.1
dot loader for webpack
New feautre: Convert the image url to absolute url.
Usage
var template = require("dot!./file.dot");
// => returns file.dot compiled as template function
Recommended config
module.exports = {
module: {
loaders: [
{ test: /\.dot$/, loader: "dot-loader" }
]
}
};
Then you only need to write: require("./file.dot")
0.1.1
7 years ago