https://github.com/meecrobe/parcel-transformer-liquid
Parcel transformer plugin for LiquidJS
https://github.com/meecrobe/parcel-transformer-liquid
liquid parcel parcel-bundler parcel-transformer shopify
Last synced: 4 months ago
JSON representation
Parcel transformer plugin for LiquidJS
- Host: GitHub
- URL: https://github.com/meecrobe/parcel-transformer-liquid
- Owner: meecrobe
- License: mit
- Created: 2023-01-14T23:05:25.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T10:17:14.000Z (about 3 years ago)
- Last Synced: 2025-09-30T15:42:37.633Z (4 months ago)
- Topics: liquid, parcel, parcel-bundler, parcel-transformer, shopify
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/parcel-transformer-liquid
- Size: 139 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# parcel-transformer-liquid


[Parcel 2](https://parceljs.org/) transformer plugin for [LiquidJS](https://liquidjs.com/).
## Installation
```bash
$ yarn add -D parcel-transformer-liquid
```
## Usage
Add the transformer to Parcel config file:
`.parcelrc`
```json
{
"extends": "@parcel/config-default",
"transformers": {
"*.liquid": [
"parcel-transformer-liquid"
]
}
}
```
To pass [options](https://liquidjs.com/tutorials/options.html) to the LiquidJS engine, create a configuration file named `.liquidrc`, `.liquidrc.js`, `.liquidrc.cjs`, `liquid.config.js`, or `liquid.config.cjs`:
`.liquidrc`
```json
{
"root": ["src/partials/"],
"extname": ".liquid",
"globals": {
"page_title": "Liquid transformer example",
"today": "Wednesday"
}
}
```
## License
MIT