npm i -D parcel-transformer-handlebars
{
"extends": [
"@parcel/config-default"
],
"transformers": {
"*.hbs": [
"parcel-transformer-handlebars"
]
}
}
Customization is possible by using a .hbsrc
, .hbsrc.js
or hbs.config.js
file.
For example, you can set local variables using .hbsrc
.
{
"firstname": "Paulo",
"lastname": "Alves"
}
For more information, see HBS guide