一覧へ戻る
skeggse/rollup-plugin-handlebars(新しいタブで開きます)
主要言語: JavaScript
rollup-plugin-handlebars
- star 数
- 0
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 0
- 最終更新
- 2016/07/19
主要言語: JavaScript
rollup-plugin-handlebars
Rollup plugin to compile handlebar templates.
npm i rollup-plugin-handlebars -D
import { rollup } from 'rollup'; import handlebars from 'rollup-plugin-handlebars'; rollup({ entry: 'main.js', plugins: [ handlebars() ] });
<p>Hello {{name}}</p>
import the template.
import template from 'template.hbs'; console.log(template({name:'world'}))
import { rollup } from 'rollup'; import handlebars from 'rollup-plugin-handlebars'; import babel from 'rollup-plugin-babel'; import { minify } from 'uglify-js'; rollup({ entry: 'main.js', plugins: [ handlebars({ //handlebar options }) ] });
MIT © Benjamin Legrand