0.6.5 • Published 6 years ago
react-templates-loader v0.6.5
react-templates loader for webpack
Usage
var template = require("react-templates-loader!./template.rt");
// => return exports of executed and compiled template.rt
Recommended configuration
{
module: {
loaders: [
{ test: /\.rt$/, loader: "react-templates-loader?modules=amd" },
]
}
}
When the loader is configured, it shouldn't be referenced in the require
:
var template = require("./template.rt");