Parcel 2 transformer plugin for LiquidJS.
$ yarn add -D parcel-transformer-liquid
Add the transformer to Parcel config file:
.parcelrc
{
"extends": "@parcel/config-default",
"transformers": {
"*.liquid": [
"parcel-transformer-liquid"
]
}
}
To pass options to the LiquidJS engine, create a configuration file named .liquidrc
, .liquidrc.js
, .liquidrc.cjs
, liquid.config.js
, or liquid.config.cjs
:
.liquidrc
{
"root": ["src/partials/"],
"extname": ".liquid",
"globals": {
"page_title": "Liquid transformer example",
"today": "Wednesday"
}
}
MIT