- Tiny plugin,
- Simple usage
- Full custom options
import FullHTMLPlugin from 'webpack-fullhtml-plugin';
new FullHTMLPlugin({
title: `example page`,
css: ['./reset.css', './style.css'],
classNames: 'class-1 class-2',
htmlNodeId: 'exemple-id',
js: ['./commons.js', './bundle.js'],
filename: `./path/index.html`
});
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>example page</title>
<link rel="stylesheet" type="text/css" href="./reset.css"/>
<link rel="stylesheet" type="text/css" href="./style.css"/>
</head>
<body>
<div class="example-scene"></div>
<script type="text/javascript" src="./commons.js"></script>
<script type="text/javascript" src="./bundle.js"></script>
</body>
</html>
to have more output you just need to duplicate the instantiation of the plugin
new FullHTMLPlugin(...options);
new FullHTMLPlugin(...options);
new FullHTMLPlugin(...options);
MIT
Hajji Tarik