1.0.2 • Published 5 years ago

@peterek/html-config-webpack-plugin v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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
  2. Any other html files will be compiled into output directory. Attribute values (src, href) are not processed.

Installation

npm i -D @peterek/html-config-webpack-plugin

Application

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

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