1.0.5 • Published 4 years ago

@k88/interpolate-html-plugin v1.0.5

Weekly downloads
1,388
License
ISC
Repository
github
Last release
4 years ago

Installation

Install using

npm install @k88/interpolate-html-plugin

This is an extension to html-webpack-plugin, so you also need to install the dependenc.

Usage

You can use %VARIABLE_NAME% within your template HTML file and then use this plugin to replace them:

module.exports = {
  ...webpackConfig,
  plugins: [
    new InterpolateHtmlPlugin({
      'NODE_ENV': 'development',
      'VARIABLE_NAME': 'some-variable-value',
    }),
  ],
}