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

https://github.com/pixelcmtd/siwedt

SImple WEbsite Delivery Tool
https://github.com/pixelcmtd/siwedt

Last synced: 3 months ago
JSON representation

SImple WEbsite Delivery Tool

Awesome Lists containing this project

README

          

# `siwedt`

siwedt is a tool for packaging websites for distribution. It automatically
transpiles and minifies JavaScript/TypeScript, HTML and CSS.

> [!WARNING]
> Please only use this tool for code that you somewhat trust. The HTML minifier
> currently used has [a known DoS vulnerability](https://github.com/advisories/GHSA-pfq8-rq6v-vf5m)
> and none of the siwedt code has been audited with security in mind.

## Usage

```sh
siwedt [options] [input-dir]
```

- `-c`/`--config`: Specify the config file, defaults to `[input-dir]/.siwedtrc`
- `-C`/`--inline-config`: Inline configuration (see below, overrides the config file)
- `-V`/`--verbose`: Print all processed files
- `-v`/`--version`: Display version information
- `-h`/`--help`/`-H`: Display help message

### Configuration

Configuration is done in the `.siwedtrc` file in the root directory of the
website or inline using the `-C`/`--inline-config` option.

```json
{
"browserlist": "defaults to empty, see , only used for babel",
"outdir": "defaults to dist"
}
```

> [!WARNING]
> If the output directory already exists, it will be deleted before processing.
> Make sure the `outdir` (`dist` by default) doesn't contain any important data.