@k88/interpolate-html-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@k88/interpolate-html-plugin

Taken from react-dev-utils, but is published as a standalone plugin and has Typescript definition.

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

Package Sidebar

Install

npm i @k88/interpolate-html-plugin

Weekly Downloads

7,116

Version

1.0.5

License

ISC

Unpacked Size

16.7 kB

Total Files

6

Last publish

Collaborators

  • ktalebian