Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/peterekjs/html-config-webpack-plugin

Webpack plugin to compile html files
https://github.com/peterekjs/html-config-webpack-plugin

Last synced: 29 days ago
JSON representation

Webpack plugin to compile html files

Awesome Lists containing this project

README

        

# html-config-webpack-plugin
Webpack configuration plugin for html compilation

1. Template files specified by `.tpl.html` can be imported into script modules as string
1. Any other html files will be compiled into output directory. Attribute values (src, href) are not processed.

## Installation
```bash
npm i -D @peterek/html-config-webpack-plugin
```

## Application

```js
const HtmlConfigWebpackPlugin = require('@peterek/html-config-webpack-plugin')

module.exports = {
plugins: [
new HtmlConfigWebpackPlugin()
]
}

```