react-templates-loader

0.6.5 • Public • Published

react-templates loader for webpack

Usage

var template = require("react-templates-loader!./template.rt");
// => return exports of executed and compiled template.rt

Documentation: Using loaders

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");

License

MIT (http://www.opensource.org/licenses/mit-license.php)

Readme

Keywords

Package Sidebar

Install

npm i react-templates-loader

Weekly Downloads

1,358

Version

0.6.5

License

MIT

Unpacked Size

1.98 kB

Total Files

3

Last publish

Collaborators

  • alerticus