@k88/interpolate-html-plugin
v1.0.5
Published
An HTML interpolation plugin for supporting template HTML file
Downloads
21,177
Maintainers
Readme
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',
}),
],
}