1.0.0 • Published 3 years ago
@michigandaily/parcel-transformer-nunjucks v1.0.0
parcel-transformer-nunjucks
Transformer for parcel
that
allows for nunjucks templating.
This loads data from JSON files specified in config.json
, as well as
config.json
itself.
// .parcelrc
{
"extends": "@parcel/config-default",
"transformers": {
"*.html": ["@michigandaily/parcel-transformer-nunjucks", "..."]
}
}
Note: updates to the source JSON files won't cause Parcel to rebuild; you
need to manually trigger a rebuild by e.g. touch
ing or saving the HTML file.
Run yarn parcel build
when developing to test the transformer.
1.0.0
3 years ago