An open API service indexing awesome lists of open source software.

https://github.com/jarred-sumner/htmlbuild

Automatically configure esbuild from html
https://github.com/jarred-sumner/htmlbuild

esbuild

Last synced: about 2 months ago
JSON representation

Automatically configure esbuild from html

Awesome Lists containing this project

README

        

# htmlbuild

Automatically configure & run esbuild from `` and `<link rel="stylesheet">` used in an .html file.

## Installation

npm:

```bash
npm install -g @jarred/htmlbuild
```

yarn:

```yarn
yarn global add @jarred/htmlbuild
```

## Usage

```
# All additional flags are forwarded to esbuild.
htb index.html --outdir=dist
htmlbuild index.html --outdir=dist
```

This lets you use an HTML file to configure esbuild.

Given an HTML file like this:

```html
<html>
<head>
<link href="foo.css" rel="stylesheet" />
<!- Notice the TypeScript: -->
<script src="./index.ts">


HI!

HI!