1.0.0 • Published 3 years ago

@michigandaily/parcel-transformer-nunjucks v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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. touching or saving the HTML file.

Run yarn parcel build when developing to test the transformer.