1.2.0 • Published 5 years ago

@aquestsrl/html-webpack-dynamic-template-parameters-plugin v1.2.0

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

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'
    }),
  ]
}
1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago