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

https://github.com/hungtcs/lit-html-minifier-loader

A webpack loader that minifies the html in template string literals
https://github.com/hungtcs/lit-html-minifier-loader

Last synced: 3 months ago
JSON representation

A webpack loader that minifies the html in template string literals

Awesome Lists containing this project

README

          

# Lit HTML Minifier Loader

## Installation

```shell
npm i -D lit-html-minifier-loader
```

```typescript
module: {
rules: [
{
test: /\.element\.ts$/,
use: [
{
loader: 'ts-loader',
},
// add this loader after ts-loader
{
loader: 'lit-html-minifier-loader',
options: {
debug: true,
}
}
],
include: [
path.join(__dirname, './src'),
]
},
// ...
],
///
}
```