Skip to content

This is an extension plugin for the webpack plugin html-webpack-plugin - a plugin that can replace variables in server template

License

Notifications You must be signed in to change notification settings

gssify/html-webpack-replace-var-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-webpack-replace-var-plugin issues stars MIT

Replace variables extension for the HTML Webpack Plugin

This is an extension plugin for the webpack plugin html-webpack-plugin - a plugin that can replace variables in server template

Installation

Install the plugin with npm:

$ npm install html-webpack-replace-var-plugin

Basic Usage

Require the plugin in your webpack config:

var HtmlWebpackReplaceVarPlugin = require('html-webpack-replace-var-plugin');

Add the plugin to your webpack config as follows:

plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackReplaceVarPlugin()
]

The above configuration will actually do nothing due to the configuration defaults.

you can set options like this:

plugins: [
  new HtmlWebpackPlugin(),
  new HtmlWebpackReplaceVarPlugin({
    '<%': '{{',
    '%>': '}}'
  })
]

About

This is an extension plugin for the webpack plugin html-webpack-plugin - a plugin that can replace variables in server template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published