dot-loader-with-image
v0.1.1
Published
dot template loader for webpack, and convert the image url to absolute url.
Downloads
1
Readme
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")