npm.io
1.0.2 • Published 8 years ago

multiple-html-webpack-plugin

Licence
ISC
Version
1.0.2
Deps
4
Size
32 kB
Vulns
0
Weekly
0
Stars
1

Multiple HTML Webpack Plugin

This Plugin inherited html-webpack-plugin Plugin and make it easy to extend, include and replace your html files

How to use

webpack.config.js

...
const MultipleHtmlWebpackPlugin = require('multiple-html-webpack-plugin');
...

let config = {
    ...
}

new MultipleHtmlWebpackPlugin({
  plugins: config.plugins,
  test: './src/tpl/*.tpl.html'
});

// Export Module
module.exports = config;

Options

plugins [Array]

Reference to your WebPack plugins variable

test [string (dir path)]

Path with RegExp for your html files