webpack
ractive-loader forExports a Ractive template as a compiled template for webpack.
Usage
Quick start guide
Install this into your project:
$ npm install --save ractive-loader
Make all your .html
files compile down to Ractive templates by
modifying your webpack.config.js
file:
/* webpack.config.js */moduleexports = module: loaders: test: /\.html$/ loader: 'ractive' ...;
Then use your Ractive templates via require()
:
template: ;
Alternate usage
You can also use it without modifying your config. Just explicitly call it on
your require()
call via a prefix:
template: ;
Thanks
ractive-loader © 2014+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz