1 | # Parcel Plugin HTL
|
2 |
|
3 | This is a plugin for Parcel which compiles `*.htl` (i.e. Sightly) templates into `dist/*.js` output.
|
4 |
|
5 | ## Status
|
6 | [![codecov](https://img.shields.io/codecov/c/github/adobe/parcel-plugin-htl.svg)](https://codecov.io/gh/adobe/parcel-plugin-htl)
|
7 | [![CircleCI](https://img.shields.io/circleci/project/github/adobe/parcel-plugin-htl.svg)](https://circleci.com/gh/adobe/parcel-plugin-htl)
|
8 | [![GitHub license](https://img.shields.io/github/license/adobe/parcel-plugin-htl.svg)](https://github.com/adobe/parcel-plugin-htl/blob/master/LICENSE.txt)
|
9 | [![GitHub issues](https://img.shields.io/github/issues/adobe/parcel-plugin-htl.svg)](https://github.com/adobe/parcel-plugin-htl/issues)
|
10 | [![npm](https://img.shields.io/npm/dw/@adobe/parcel-plugin-htl.svg)](https://www.npmjs.com/package/@adobe/parcel-plugin-htl)
|
11 | [![Greenkeeper badge](https://badges.greenkeeper.io/adobe/parcel-plugin-htl.svg)](https://greenkeeper.io/)
|
12 |
|
13 |
|
14 | ## Usage
|
15 |
|
16 | Add `@adobe/parcel-plugin-htl` to your `devDependencies` and then run
|
17 |
|
18 | ```bash
|
19 | npx parcel build src/*.htl --target node
|
20 | ```
|
21 |
|
22 | > **Note**: due to a [bug](https://github.com/parcel-bundler/parcel/issues/1632) in the parcel bundler, the `--target node` option is required.
|