@peterek/html-config-webpack-plugin

1.0.2 • Public • Published

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()
    ]
}

/@peterek/html-config-webpack-plugin/

    Package Sidebar

    Install

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

    Weekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    6.03 kB

    Total Files

    7

    Last publish

    Collaborators

    • peterek