Skip to content

AlexanderPavlenko/react-templates-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

react-templates loader module for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published