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
- Host: GitHub
- URL: https://github.com/pixelcmtd/siwedt
- Owner: pixelcmtd
- License: mit
- Created: 2021-08-06T02:42:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-05-16T20:05:55.000Z (about 1 year ago)
- Last Synced: 2025-09-24T19:48:25.280Z (10 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/siwedt
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.