Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 627 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 627 Bytes

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 npx parcel build when developing to test the transformer.