@aquestsrl/html-webpack-dynamic-template-parameters-plugin

1.2.0 • Public • Published

html-webpack-dynamic-template-parameters-plugin

This plugin must be used after HtmlWebpackPlugin.
Before HtmlWebpackPlugin generate the new html, this plugin update the template parameters checking basename of template file.

Installation

yarn add @aquestsrl/html-webpack-dynamic-template-parameters-plugin -D

const HtmlWebpackDynamicTemplateParametersPlugin = require('@aquestsrl/HtmlWebpackDynamicTemplateParametersPlugin');

const config = {
  plugins: [
    ...,
    new HtmlWebpackPlugin({
      template: 'index.hbs',
      filename: 'index.html'
    }),
    new HtmlWebpackDynamicTemplateParametersPlugin({
       path: 'index.json',
       globalPath: 'global.json'
    }),
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @aquestsrl/html-webpack-dynamic-template-parameters-plugin

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

37.1 kB

Total Files

6

Last publish

Collaborators

  • aquestdigital