yox-template-loader
v0.11.8
Published
If you want to use the `runtime` version of yoxjs, you have to precompile the `template` at first.
Downloads
35
Readme
yox-template-loader
If you want to use the runtime
version of yoxjs, you have to precompile the template
at first.
This is a webpack loader for precompiling yox template file.
Install
NPM
npm i yox-template-loader
YARN
yarn add yox-template-loader
Usage
xx.hbs
.hbs
is recommended, that is aHandlebars
file extname
<div class="example">
{{msg}}
</div>
webpack.config.js
rules: [
{
test: /\/src\/.*?\.hbs$/,
use: [{
loader: 'yox-template-loader'
}]
}
]